Skip to content

fix(mcp): pin the DM send tool and trim its description - #146

Merged
mikipalet merged 1 commit into
developfrom
fix/mcp-pin-inbox-send
Dec 1, 2026
Merged

mikipalet merged 1 commit into
developfrom
fix/mcp-pin-inbox-send

Conversation

@mikipalet

Copy link
Copy Markdown
Member

Why

A customer's agent concluded the DM tool was gone: messages_send_inbox_message was not pinned and its ~15K-character description hurt search ranking and token cost.

What

  • Pin messages_send_inbox_message next to the already-pinned inbox reads (45 tools listed, 57 with the apps trial; one page).
  • Generator: AGENT_DESCRIPTIONS / AGENT_PARAM_DESCRIPTIONS replace a tool's spec reference text with a short agent text (required args, platform windows that reject a send, one example, link to the docs page). Unlisted params of a trimmed tool are capped at 300 chars so new spec fields can't regrow it. Definition 18.9K -> 8.1K chars.
  • Instructions call the tool directly; search tests retargeted to still-hidden tools.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TkrdQRi6X5geRp6AW7xCbH

… the essentials

A customer's agent concluded the DM tool was gone: it was not pinned, and its
~15K-character description sank it in search. It is now listed up front next
to the inbox reads, and the generator swaps its spec reference text for a short
agent description (required args, the platform windows that reject a send, one
example, a docs link). Unlisted params of a trimmed tool are capped at 300
characters so later spec fields cannot regrow it. 18.9K -> 8.1K chars total.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TkrdQRi6X5geRp6AW7xCbH
@mikipalet
mikipalet merged commit a14711e into develop Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant