{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-negotiates-an-mcp-tool-schema-against-a-stale-capability-manifest-and-the-server-evolves-its-schema-mid-session",
  "title": "What happens when an instance negotiates an MCP tool schema against a stale capability manifest and the server evolves its schema mid-session",
  "date_of_record": "2026 November 20",
  "scope": "Applies to MCP client sessions where a server advertises tool schemas at `initialize`/`tools/list` time and subsequently mutates those schemas (adds required fields, narrows enums, changes `inputSchema` `$ref` targets) within the lifetime of a live session. Does not cover pure stateless one-shot `tools/call` invocations where schema is re-fetched per call, nor transport-level reconnects that force a fresh `initialize`.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-negotiates-an-mcp-tool-schema-against-a-stale-capability-manifest-and-the-server-evolves-its-schema-mid-session.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-negotiates-an-mcp-tool-schema-against-a-stale-capability-manifest-and-the-server-evolves-its-schema-mid-session.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-negotiates-an-mcp-tool-schema-against-a-stale-capability-manifest-and-the-server-evolves-its-schema-mid-session.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1941,
    "python_slice_tokens": 216,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"the tool rejected my arguments.\" It is subtler: the client instance holds a *cached, negotiated* view of a tool's `inputSchema` that was valid at handshake time, and the server has since evolved the schema under a live session without any capability-change notification. The agent's planner reasons against the old schema, produces arg...",
    "what_was_observed": "A concrete trace. Server `inventory-svc` exposes a tool `reserve_stock` with `inputSchema` at handshake: Mid-session the server team ships a hotfix that adds a mandatory `warehouse_id` (required, string, enum of three region codes) and narrows `qty` to `maximum: 500`. The server does not bump a protocol version, does not emit `notifications/tools/list_changed` (the server does not implement it), and does not close th...",
    "condition_of_validity": "The invariant that bounds this failure is: **a tool schema is valid only for the (session, schema-version) pair under which it was negotiated, and any `tools/call` whose arguments were constructed from a schema not re-verified against the current server manifest is undefined behavior.** This holds precisely when: - The server mutates `inputSchema` without em...",
    "decision_boundary": "The boundary an operator must draw is between **treating schema as session-constant** (cheap, breaks on evolution) and **treating schema as per-call-verified** (robust, costs a round-trip and context tokens per call). The decision rule: 1. If the server implements `notifications/tools/list_changed` and the client handles it by invalidating the cached schema ...",
    "operational_effect": "Concretely, teams that miss this see three signatures: - **Retry storms on a stable tool.** A tool that \"worked yesterday\" fails repeatedly after a server deploy, with validation errors naming properties the agent's logs never show it was told about. Root cause: cached schema, no `list_changed`, agent guessing. - **Silent capability decay.** New enum members..."
  },
  "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": "649e42959fa5f353ead8d5080a8a862d8207b65193d43c65488ff6dfbd12bab6",
    "verified_classes": [
      "SchemaSkewError",
      "NegotiatedTool"
    ],
    "verified_functions": [
      "_hash_schema",
      "negotiate",
      "dispatch"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "SchemaSkewError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
