Skip to content

fix(mcp): "create ad" and "create_ad" find the ad create tools - #149

Merged
mikipalet merged 1 commit into
developfrom
fix/mcp-create-ad-search
Dec 3, 2026
Merged

mikipalet merged 1 commit into
developfrom
fix/mcp-create-ad-search

Conversation

@mikipalet

Copy link
Copy Markdown
Member

Why

The customer from #148 also searched "Create ad" and "create_ad"; ad_campaigns_create_standalone_ad ranked 9th behind short overviews like ad_audiences_create_ad_audience (BM25 gets almost no signal from two very common words).

What

  • Tools whose name runs from the query's first word to its last word, holding every query word (create_..._ad), lead the results, ordered by BM25. Snake_case and spaced queries match the same way.
  • "create ad", "create_ad", "Create ad" added to the ranking test; earlier queries unchanged.
  • Each hidden tool queried by its title / its name words: top-3 hit rate 98.7% to 99.0% / 98.6% to 99.1%.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TkrdQRi6X5geRp6AW7xCbH

Two words this common carry almost no BM25 signal, so short "create ... ad"
overviews (ad_audiences_create_ad_audience, ad_creatives_create_ad_creative)
outranked ad_campaigns_create_standalone_ad. Tools whose name runs from the
query's first word to its last (create_..._ad) now lead, ordered by BM25.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TkrdQRi6X5geRp6AW7xCbH
@mikipalet
mikipalet merged commit 92e64c2 into develop Dec 3, 2026
3 checks passed
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