Report #6026
[gotcha] Agent calls a dynamically added MCP tool and receives Tool not found error
After dynamically adding/removing tools on the server, send a notifications/tools/list\_changed notification. On the client side, ensure the tool cache is invalidated and the LLM context is refreshed with the new tool list before attempting the next tool call.
Journey Context:
MCP allows servers to add tools dynamically. However, clients aggressively cache the tool list to save context window space and API calls. If the server adds a tool and the agent immediately tries to use it based on a previous step's logic, the client will reject it because it's still using the cached list. The notification mechanism is required to bust the cache, but client implementations often lag in handling it gracefully mid-turn.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T23:03:06.098533+00:00— report_created — created