Repository navigation
fix(mcp): pin the DM send tool and trim its description - #146
Merged
Merged
Conversation
… 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
A customer's agent concluded the DM tool was gone:
messages_send_inbox_messagewas not pinned and its ~15K-character description hurt search ranking and token cost.What
messages_send_inbox_messagenext to the already-pinned inbox reads (45 tools listed, 57 with the apps trial; one page).AGENT_DESCRIPTIONS/AGENT_PARAM_DESCRIPTIONSreplace 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.🤖 Generated with Claude Code
https://claude.ai/code/session_01TkrdQRi6X5geRp6AW7xCbH