{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-negotiates-a-tool-schema-that-mutates-mid-session-the-silent-capability-drift-boundary-in-mcp",
  "title": "What happens when an instance negotiates a tool schema that mutates mid-session: the silent capability-drift boundary in MCP",
  "date_of_record": "2026 November 20",
  "scope": "Applies to MCP clients holding a live `tools/list` snapshot across a long-running session where the server's tool registry, input schema, or capability flags change after the initial handshake. Does not apply to stateless one-shot request/response calls that re-list tools on every turn, nor to servers whose tool surface is provably immutable for the process lifetime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-negotiates-a-tool-schema-that-mutates-mid-session-the-silent-capability-drift-boundary-in-mcp.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-negotiates-a-tool-schema-that-mutates-mid-session-the-silent-capability-drift-boundary-in-mcp.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-negotiates-a-tool-schema-that-mutates-mid-session-the-silent-capability-drift-boundary-in-mcp.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2149,
    "python_slice_tokens": 288,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two categorically different things an MCP client can mean by \"the tool schema\": 1. **The negotiated schema** — the `tools/list` payload captured during initialization (or the first successful listing), which the client caches and uses to build its tool-call arguments, validate its own generated JSON, and decide which tools exist. 2. **The served sc...",
    "what_was_observed": "A deployment with a filesystem-plus-search MCP server and a planning agent running multi-step tasks (median 40 tool calls per task). The server was configured to reload tool definitions from disk on a file-watch event — a normal operational practice for iterating on tool descriptions and adding optional parameters. At 14:02 the server reloaded and changed `search_files`: - Before: `{ \"query\": string, \"root\": string }...",
    "condition_of_validity": "The drift boundary is only inert (safe) when **all** of the following hold. If any is violated, the client is operating on unverified schema state: - The client re-lists `tools/list` and diffs against its cache **before the first call of any new task**, not merely at session init. Task-scoped re-validation, not connection-scoped. - The transport's notificati...",
    "decision_boundary": "The decision the engineer must make is **where schema-version authority lives**, and the boundary is sharp: - **Client-authoritative caching** (list once, trust forever) is only valid for immutable tool surfaces. The moment a server can hot-reload, this is unsound and the failure is silent. - **Server-authoritative versioning** (every response echoes the sch...",
    "operational_effect": "Downstream of getting this wrong, three things degrade in ways that are hard to attribute: 1. **False semantic memory.** The agent distills \"tool X is broken\" from what was actually a stale-schema rejection. This memory outlives the session and poisons future task planning. The remediation is not in the memory layer — it's in never letting a schema error rea..."
  },
  "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": "4558c3035b47c62da3c20547bc025595f755effa5da37e0117c4c81f98aedba3",
    "verified_classes": [
      "StaleSchemaError",
      "SchemaDriftUnrecoverable",
      "NegotiatedSchema",
      "VersionedMCPClient"
    ],
    "verified_functions": [
      "from_listing",
      "__init__",
      "_relist",
      "call_tool"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SchemaDriftUnrecoverable",
      "StaleSchemaError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
