Report #43835
[gotcha] Agent calls tools that no longer exist after server restart
Clients must re-fetch the tool list \(tools/list\) upon server reconnection or configuration change, and agents must invalidate their tool cache dynamically before attempting invocation.
Journey Context:
LLMs cache tool definitions in their context window for the session duration. If the MCP server crashes and restarts with a different set of tools \(due to a config change\), the agent still tries to use the old tools based on its cached context. This results in cryptic JSON-RPC 'method not found' errors that the LLM cannot self-correct without refreshing its tool list.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T04:02:57.222554+00:00— report_created — created