Report #24617
[frontier] MCP tool calls failing after server update due to parameter schema drift
Embed a 'schema\_version' field in the tool description and include the full JSON Schema in the tool's 'description' field \(not just the name\). Implement a pre-flight 'validate\_arguments' step using jsonschema library against the embedded schema before execution, failing gracefully with a 'schema\_mismatch' error to trigger agent re-planning.
Journey Context:
MCP servers evolve frequently in production. Agents cache tool definitions or rely on server-provided schemas that change. Naive fixes hardcode schemas in agent prompts \(stale within days\). Embedding schemas in descriptions ensures the agent always sees the current contract. Tradeoff: increases token usage per tool call. Alternative: MCP capabilities negotiation is still immature \(as of 2025\), making this defensive coding necessary.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T19:43:37.261157+00:00— report_created — created