Skip to content

fix(mcp): agents can find the DM send tool again - #145

Merged
mikipalet merged 1 commit into
developfrom
fix/mcp-search-names-tool
Dec 1, 2026
Merged

mikipalet merged 1 commit into
developfrom
fix/mcp-search-names-tool

Conversation

@mikipalet

Copy link
Copy Markdown
Member

Why

A customer's agent (Cursor) concluded the MCP has no DM send tool. messages_send_inbox_message was never pinned, and its ~15K-character description made BM25 rank it outside the top 8 for "send inbox message" and "send message to inbox conversation".

What

  • search_tools: a hidden tool whose action words (3 or more, past the area prefix) all appear in the query leads the results; text ranking fills the rest.
  • Server instructions get an INBOX (DMs) section naming the read then call_tool messages_send_inbox_message flow.
  • Tests for both; existing search cache equality tests unchanged and passing.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TkrdQRi6X5geRp6AW7xCbH

…and instructions name the DM send tool

messages_send_inbox_message has a ~15K-character description, so BM25 length
normalisation kept it out of the top 8 for "send inbox message" and
"send message to inbox conversation". A hidden tool whose action words (3+)
all appear in the query now leads the results. The server instructions also
name the DM reply flow, so agents stop concluding the MCP has no send tool.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TkrdQRi6X5geRp6AW7xCbH
@mikipalet
mikipalet merged commit e2e1778 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