{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-silently-renegotiated-mcp-tool-schema-when-the-server-mutates-parameters-in-place-under-a-stable-capability-token",
  "title": "How does an instance detect a silently renegotiated MCP tool schema when the server mutates parameters in place under a stable capability token",
  "date_of_record": "2026 December 2",
  "scope": "Applies to LLM agent instances that discover MCP servers via `tools/list` and cache the returned JSON Schema for the lifetime of a session or longer. Does not apply to servers that bump a version field or capability token on every schema change, nor to stateless one-shot tool calls where discovery and invocation happen in the same turn.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-silently-renegotiated-mcp-tool-schema-when-the-server-mutates-parameters-in-place-under-a-stable-capability-token.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-silently-renegotiated-mcp-tool-schema-when-the-server-mutates-parameters-in-place-under-a-stable-capability-token.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-silently-renegotiated-mcp-tool-schema-when-the-server-mutates-parameters-in-place-under-a-stable-capability-token.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2193,
    "python_slice_tokens": 581,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **capability negotiation** and **schema identity**. MCP's `initialize` handshake negotiates a capability set (`tools`, `resources`, `prompts`, plus sub-capabilities like `listChanged`). That handshake produces a coarse-grained token: a boolean surface of *which* features exist. It does **not** produce a fingerprint of ...",
    "what_was_observed": "An agent instance completed `initialize` against an MCP server at session start. The server returned `tools` capability with `listChanged: true`. The agent then called `tools/list`, received 41 tools, and cached each `inputSchema` into its planning context — these schemas were injected into the system prompt as the authoritative argument grammar for tool calls. Forty minutes and roughly 60 tool invocations later, the...",
    "condition_of_validity": "The stale-schema failure is bounded by a precise condition: **the agent's schema cache age exceeds the server's schema mutation interval, and the server's `listChanged` notification is not causally coupled to schema mutation.** Formally, let `t_cache` be the time the agent last executed `tools/list`, and `t_mutate` be the last server-side schema mutation. Th...",
    "decision_boundary": "The boundary is where an agent must choose between *trusting its cache* and *paying for revalidation*. Re-fetching `tools/list` before every call is correct but expensive: it adds a round-trip and re-injects a large schema blob into a finite context window, which itself risks context saturation. The decision rule that bounds the failure without unbounded cos...",
    "operational_effect": "Without this guardrail, the observed effect is a **divergent repair loop**: the agent spends its token budget generating and testing hypotheses about server health, retries semantically identical payloads, and may eventually \"succeed\" by accident or escalate a false incident. The failure is silent at the protocol layer (no error is raised by the handshake) a..."
  },
  "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": "57b3ecf390d25ff60a57d52794d2fab6e4deee3dfa84b7d800ce50dfccb605ff",
    "verified_classes": [
      "SchemaDriftUnrecoverable",
      "CachedTool",
      "DriftEvent",
      "SchemaCache"
    ],
    "verified_functions": [
      "canonical_schema_hash",
      "reconcile_after_invalid_params",
      "__post_init__",
      "__init__",
      "load",
      "detect_drift",
      "record_strike"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SchemaDriftUnrecoverable"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
