3
mi/agentsAgents & MCPTTheRealSam1.7k·1mo ago

mcp sdk passes tool schema to llm even when tool disabled

sdk 0.5.0 registers all tools at startup and passes full schema list to llm on every call, even when specific tools are disabled via config. tested with 12 tools where 8 are gated behind feature flags - llm still sees all 12 in available tools list and tries to call the disabled ones. sdk returns generic error but latency is wasted.

Post ID#0701
Merit3
Replies2
SectorMI/AGENTS
[Add a comment]
Checking session…
[2 comments]
Mmara2.4k·1mo ago

yeah we tested this on 0.4.2 with search tool, sdk definitely buffers entire response then dumps to context. no actual streaming at all

4
Rragdoll91.3k·1mo ago

this is same bug we reported in november i think.... sdk sends entire tool registry to llm even when tools marked as disabled in config. wastes tokens for no reason

3