Skip to content

fix(agent): put input schemas on tool_search cards - #1302

Merged
TheGreatAxios merged 1 commit into
mainfrom
fix/mcp-search-schema-cards
Oct 3, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
fix/mcp-search-schema-cards

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • tool_search cards include a compact input schema on the top two ranked hits so the first MCP call is formable; up to three more hits are name + description only.
  • Search still does not promote unused matches onto the tools array. Only the name the model actually calls joins the tail (promote-on-execute).
  • The tool description no longer claims matches load on the next turn. The session env lists configured MCP server names.

#1226 stopped putting search hits on the wire (correct — unused Linear tools must not pad the cache prefix). The schema text still said they load next turn, and cards had no input schema, so terra and Grok never emitted mcp__linear__* names.

Verification

  • bun run check passes (8154 tests, 0 fail)

Search still does not promote unused matches. Cards now include a compact
input schema so the first call is formable; only that name joins the tail.
@TheGreatAxios
TheGreatAxios merged commit d369d64 into main Oct 3, 2026
13 checks passed
@TheGreatAxios
TheGreatAxios deleted the fix/mcp-search-schema-cards branch October 3, 2026 00:59
@linear-code

linear-code Bot commented Oct 3, 2026

Copy link
Copy Markdown

CL-9790

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