Report #46598
[gotcha] Agent calls MCP tool that no longer exists after server restart, gets cryptic 'method not found' error
Implement health checks or heartbeat for MCP server connections. On connection loss or error, invalidate the tool cache and re-call tools/list on reconnection. Surface a clear 'tool no longer available—refreshing tool list' message rather than retrying the failed call.
Journey Context:
MCP servers run as separate processes that can crash and restart independently of the client. When a server restarts, the client still holds cached tool definitions from the previous session. The agent attempts to call a tool, but the server may have a different tool set after restart \(different version, different configuration, different environment\). The error message is often cryptic—'method not found' or 'invalid params'—because the server does not know it is supposed to have that tool in its new state. The agent may interpret this as a transient error and retry, wasting conversation turns and context tokens. The fix requires proactive lifecycle management rather than reactive error handling. The counter-intuitive part is that the error looks like a tool bug but is actually a stale-cache problem.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T08:41:16.862857+00:00— report_created — created