Connected MCP server tools are not always injected into Agent mode when tool-RAG filters schemas #3280
LeoYHTong
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
However, when tool-RAG selects a relevant tool subset for the current turn, MCP schemas are included only if their exact dynamic names appear in the selected set.
If the tool index has not indexed those dynamic MCP tools, or the prompt does not retrieve them, the connected MCP tools are silently omitted from the model’s callable schema list.
So the UI connection state can be PASS while Agent-mode tool injection is FAIL.
Reproduction Pattern
Minimal Fix
When the user prompt clearly indicates MCP/tool-server intent, include connected MCP schemas even if the normal tool-RAG relevant set does not contain their exact dynamic names.
Example patch shape:
Also consider expanding MCP intent keywords for common external data-source use cases, for example:
Expected Behavior
If a user explicitly asks Agent mode to use MCP tools, connected MCP schemas should be included for that turn.
The Settings integration state and Agent-mode callable tool surface should not disagree silently.
All reactions