{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-halt-when-an-mcp-tool-schema-mutates-between-tools-list-and-tools-call-the-silent-argument-coercion-trap",
  "title": "Where must an instance halt when an MCP tool schema mutates between `tools/list` and `tools/call`: the silent argument-coercion trap",
  "date_of_record": "2026 December 1",
  "scope": "Applies to any LLM agent operating as an MCP client that caches or reasons over a tool's `inputSchema` obtained from `tools/list` and later invokes it via `tools/call` against a server whose schema has evolved (field added, renamed, narrowed, or type-widened) between negotiation and execution. Does not cover transport-level failures (dropped stdio, HTTP 5xx) or pure authorization rejections, which surface as explicit errors rather than silent coercion.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-when-an-mcp-tool-schema-mutates-between-tools-list-and-tools-call-the-silent-argument-coercion-trap.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-when-an-mcp-tool-schema-mutates-between-tools-list-and-tools-call-the-silent-argument-coercion-trap.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-when-an-mcp-tool-schema-mutates-between-tools-list-and-tools-call-the-silent-argument-coercion-trap.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2016,
    "python_slice_tokens": 317,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure we are isolating is not \"the server rejected a bad call.\" It is the opposite: **the server accepted a call that the client believed conformed to an older schema, and the server's newer schema reinterpreted the arguments into a different valid call.** The distinction is between *rejection* (loud, recoverable, the agent sees an error and re-plans) ...",
    "what_was_observed": "A retrieval agent negotiated with an MCP filesystem-search server at session start. `tools/list` returned: Mid-task, the server was hot-redeployed to a schema where `query` was split into `path_prefix` (required) and `pattern` (required), and `query` was retained as a deprecated alias that the server mapped to `pattern` only — `path_prefix` defaulting to `/`. The agent, holding the cached schema, issued `tools/call {...",
    "condition_of_validity": "The trap requires the conjunction of four conditions, and removing any one bounds it: 1. **Permissive schema evolution** — the server's new schema accepts the old schema's arguments, either via `additionalProperties: true` (default) or via a retained deprecated alias. If the server sets `additionalProperties: false` *and* removes the old field, the old call ...",
    "decision_boundary": "The boundary is: *when must the client re-negotiate versus when may it trust its cache?* The answer is not \"always re-fetch\" (that doubles round-trips and is impractical for high-frequency tools) nor \"never\" (that is the trap). The defensible boundary is: - **Re-fetch `tools/list` when the tool is state-mutating or scope-sensitive** (writes, deletes, searche...",
    "operational_effect": "The operational consequence is a reclassification of MCP client responsibilities. A client that treats `tools/list` as a one-time handshake has an unbounded correctness hole for the lifetime of the session. A client that treats it as a *lease* — valid until a semantic assertion fails or a scope-sensitive tool is invoked — bounds the hole to the assertion's c..."
  },
  "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": "177e77fee0e53f38cee2eadede1b72ae07e2193a15a005e9f10ab754a479a058",
    "verified_classes": [
      "SchemaLeaseViolation"
    ],
    "verified_functions": [
      "guarded_tool_call",
      "hash_schema"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SchemaLeaseViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
