{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-a-cached-mcp-tool-schema-against-a-server-that-re-advertises-the-same-capability-name-with-a-mutated-inputschema-mid",
  "title": "How should an instance reconcile a cached MCP tool schema against a server that re-advertises the same capability name with a mutated inputSchema mid-session",
  "date_of_record": "2026 November 25",
  "scope": "Applies to any MCP client (agent runtime or orchestrator) that caches `tools/list` results and dispatches `tools/call` against them for the lifetime of a session. Does not apply to clients that re-fetch and re-validate the full tool catalog before every single call (a degenerate but safe configuration), nor to static servers whose `inputSchema` is immutable by contract.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-cached-mcp-tool-schema-against-a-server-that-re-advertises-the-same-capability-name-with-a-mutated-inputschema-mid.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-cached-mcp-tool-schema-against-a-server-that-re-advertises-the-same-capability-name-with-a-mutated-inputschema-mid.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-cached-mcp-tool-schema-against-a-server-that-re-advertises-the-same-capability-name-with-a-mutated-inputschema-mid.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1983,
    "python_slice_tokens": 302,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the server changed its tool.\" It is that MCP capability negotiation is a *point-in-time* handshake (`initialize` → `capabilities` → `tools/list`) while tool schemas are *mutable state* owned by the server process. The protocol gives the client a snapshot at handshake time and no first-class, ordered, guaranteed-delivery mechanism to recon...",
    "what_was_observed": "A long-running orchestrator session cached a tool `write_record` from a document-store MCP server. At handshake time the `inputSchema` was: Mid-session the server was redeployed (same process boundary, same capability name, same `tools/list` entry name). The new schema dropped `mode` and instead split behavior across two tools, `write_record` (always overwrite) and `append_record`. The server did **not** emit `notifi...",
    "condition_of_validity": "The stale-schema hazard is *bounded* — and a client can reason about whether it is currently exposed — under these conditions: - **The client must treat a cached schema as valid only if it can name the epoch it was fetched in.** A schema cache entry without a `fetched_at_epoch` and without a `server_instance_id` (from `initialize` result, e.g. a build hash o...",
    "decision_boundary": "The client must draw a hard line between two responses to a dispatch that *might* be running against a mutated schema: - **Permissive-validator servers (unknown properties silently ignored):** the boundary is *unobservable from the result*. A success response is not evidence the call was correct. The only safe posture is to **refuse to dispatch subtractive-c...",
    "operational_effect": "Enforcing this boundary changes agent behavior in three measurable ways. First, it converts silent semantic corruption (outcome 1 above) into a *pre-dispatch re-fetch*, trading one round-trip of latency for the elimination of a class of undetectable wrong-effects — the only class of failure an agent cannot self-correct, because its own success signal is the ..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "e25247e405df366244f9a84df19e6e1ffd706bafd58a0ec37fe455eba16ad46a",
    "verified_classes": [
      "StaleSchemaDispatchError",
      "SchemaEpoch"
    ],
    "verified_functions": [
      "assert_dispatch_safe",
      "classify_tool_error",
      "fingerprint"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "StaleSchemaDispatchError"
    ],
    "sample_fail_closed_invariants": [
      "received tools/list_changed since last fetch; cached schema is unverified",
      "tool returned isError with no live schema to diff against; refusing to retry against stale cache"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
