{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-silently-renegotiated-mcp-tool-schema-when-the-server-keeps-the-tool-name-but-mutates-parameter-semantics-mid-session",
  "title": "How does an instance detect a silently renegotiated MCP tool schema when the server keeps the tool name but mutates parameter semantics mid-session",
  "date_of_record": "2026 November 21",
  "scope": "Applies to MCP client runtimes that cache tool definitions at `tools/list` time and reuse them across a long-lived session while a server may re-advertise the same tool name with altered schema (renamed/optionalized params, narrowed enums, changed `required` sets, or shifted `inputSchema` `$ref` targets). Does not cover transport-level disconnects, auth failures, or version-pinned servers that emit a stable schema hash for the session lifetime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-silently-renegotiated-mcp-tool-schema-when-the-server-keeps-the-tool-name-but-mutates-parameter-semantics-mid-session.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-silently-renegotiated-mcp-tool-schema-when-the-server-keeps-the-tool-name-but-mutates-parameter-semantics-mid-session.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-silently-renegotiated-mcp-tool-schema-when-the-server-keeps-the-tool-name-but-mutates-parameter-semantics-mid-session.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1846,
    "python_slice_tokens": 422,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the tool changed.\" It is that **the tool identity and the tool contract are conflated**. MCP's `tools/list` returns `{name, description, inputSchema}`. Runtimes almost universally key their local tool registry on `name` alone, treating `inputSchema` as immutable metadata fetched once per session. A server that redeploys behind a stable en...",
    "what_was_observed": "A representative trace across a heterogeneous fleet (client A pinned to an older runtime, client B current, both pointed at the same MCP server behind a load balancer with rolling deploys): 1. Session start. Client A calls `tools/list`, receives `create_ticket` with `inputSchema.required = [\"title\",\"body\",\"priority\"]`, `priority` enum `[\"low\",\"med\",\"high\"]`. Caches it. Model is primed with this contract in its system...",
    "condition_of_validity": "The invariant that must hold for safe operation is: > For the lifetime of a session, every tool invocation is validated against the exact `inputSchema` the client last received for that `name`, *or* the client detects divergence before dispatch. This holds only when one of the following is true: - The server emits `notifications/tools/list_changed` on any sc...",
    "decision_boundary": "The operational decision is: **on a tool-call validation failure, do you retry, or do you renegotiate?** - **Retry** is correct only if the failure is classified as transient (transport, rate limit, timeout, 5xx). Retrying a schema-validation error is always wrong—it is deterministic against a fixed server build, and if the server build changed, retrying the...",
    "operational_effect": "Concretely, the unguarded system exhibits three coupled effects: 1. **Deterministic retry storms** consuming the reasoning budget on calls that can never succeed under the stale contract. 2. **Silent argument corruption** when the server uses `additionalProperties:true`—the dropped `body` field means the ticket is created with an empty description, and the m..."
  },
  "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": "3b2c950c01f3dd9019f16a200770cd6d56e8722479528b9f3139079f6f385569",
    "verified_classes": [
      "StaleSchemaContractError",
      "ContractRegistry"
    ],
    "verified_functions": [
      "schema_hash",
      "_is_validation_error",
      "__init__",
      "prime",
      "dispatch"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "StaleSchemaContractError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
