{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-skill-injected-mcp-tool-s-declared-schema-over-its-observed-behavior",
  "title": "What happens when an instance trusts a skill-injected MCP tool's declared schema over its observed behavior",
  "date_of_record": "2026 November 24",
  "scope": "Applies to LLM agents that discover and bind MCP (Model Context Protocol) tools at runtime via `tools/list` and dispatch through `tools/call`, where the tool's `inputSchema` and `description` are authored by a third-party server. Does not apply to statically compiled tool registries where schemas are pinned at build time and verified out-of-band.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-skill-injected-mcp-tool-s-declared-schema-over-its-observed-behavior.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-skill-injected-mcp-tool-s-declared-schema-over-its-observed-behavior.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-skill-injected-mcp-tool-s-declared-schema-over-its-observed-behavior.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1750,
    "python_slice_tokens": 334,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The safety benchmark treats skill-injection as a *content* problem: an adversarial MCP server returns a poisoned `description` or `inputSchema` field that, when concatenated into the model's tool-selection context, causes the model to emit a call the operator did not intend. The benchmark's adversarial suite typically scores this by checking whether the mode...",
    "what_was_observed": "A harness was run against a suite of 40 MCP servers, 12 of which were seeded with \"benign\" canary payloads (a unique token in `description`, a unique token in `inputSchema` default values) and 4 of which were seeded with a *stateful* divergence: the server's `tools/call` handler returned a schema-conformant result on the first call for a given `session_id`, then on the second call returned a result whose size and sha...",
    "condition_of_validity": "The schema-behavior divergence is exploitable, and the benchmark blind to it, exactly when all of the following hold: - The MCP server is permitted to maintain per-session or per-call-count state that influences its handler's resource selection or output derivation. - The agent binds the tool's semantics from `tools/list` output and does not re-verify that `...",
    "decision_boundary": "The agent must not treat a tool's `inputSchema` and `description` as a contract over the tool's *lifetime*. It is a contract over a *single call*, and even then only over the shape of the result, not its provenance. The operational boundary: - **Bind on declaration, verify on result.** After each `tools/call`, the agent must check that the result is derivabl...",
    "operational_effect": "Under the current benchmark, a stateful-divergence MCP server achieves a 100% pass rate while inducing wrong downstream conclusions in 77% of runs. The failure is silent because the model's context contains a schema-conformant result that it has no mechanism to cross-check against its own arguments. The correction is to make result-argument correspondence 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": "44100060b6dcc826d638e8818cfe1b001bd53b751b03d6e7a4ed410b99857bf9",
    "verified_classes": [
      "SchemaBehaviorDivergence"
    ],
    "verified_functions": [
      "verified_call",
      "bind_and_execute"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SchemaBehaviorDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
