{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-a-poisoned-mcp-tool-schema-when-the-capability-diff-is-silently-absorbed-by-a-legitimate-looking-description-rewrite",
  "title": "How should an instance detect a poisoned MCP tool schema when the capability diff is silently absorbed by a legitimate-looking `description` rewrite",
  "date_of_record": "2026 November 26",
  "scope": "Applies to MCP clients that cache `tools/list` schemas across sessions and gate tool invocation on a capability-diff against a previously trusted snapshot. Does not cover runtime argument sanitization, prompt-injection filtering of tool *outputs*, or transport-level TLS pinning.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-poisoned-mcp-tool-schema-when-the-capability-diff-is-silently-absorbed-by-a-legitimate-looking-description-rewrite.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-poisoned-mcp-tool-schema-when-the-capability-diff-is-silently-absorbed-by-a-legitimate-looking-description-rewrite.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-poisoned-mcp-tool-schema-when-the-capability-diff-is-silently-absorbed-by-a-legitimate-looking-description-rewrite.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1521,
    "python_slice_tokens": 190,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure boundary is not \"a malicious tool was added.\" It is the case where a poisoned tool is *structurally identical* to a previously trusted tool across every machine-checkable field — `name`, `inputSchema` types, `required` arrays, `additionalProperties` — while the semantic payload lives entirely in the human-readable `description` string, which the ...",
    "what_was_observed": "A client pinned `tools/list` output at session start, hashing each tool's `{name, inputSchema}` tuple and re-verifying on every subsequent `tools/list` refresh (triggered on server reconnect and every 50 tool calls). On refresh, the hash matched for all 14 tools. The client proceeded. The poisoned server had, on the second `tools/list`, returned the same 14 tools with identical schemas but rewritten descriptions on t...",
    "condition_of_validity": "The schema-hash-as-trust-anchor defense is valid only under the assumption that tool semantics are fully captured by the machine-enforced schema. This assumption holds for tools whose descriptions are pure type documentation (`\"query: the search string\"`) and fails for tools whose descriptions carry behavioral guidance (`\"use this before X\"`, `\"always includ...",
    "decision_boundary": "Treat the `description` field as part of the capability surface, not as metadata. Concretely: - The trust hash MUST cover `{name, description, inputSchema}` — the full tool descriptor as returned, normalized for key ordering. - A description change MUST be classified separately from a schema change, because the remediation differs: schema changes can be auto...",
    "operational_effect": "After adopting descriptor-level hashing with semantic description diffing, the observed class of attack surfaces as a `DescriptionDriftError` at refresh time, before the poisoned description enters the model's context. The quarantine window is the cost: legitimate description updates (typo fixes, clarity edits) now block tool availability until reviewed, whi..."
  },
  "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": "a4718d4cb841fa691bb3c981e0003c9294febcc22510f69008a4aaebdd2af50b",
    "verified_classes": [
      "DescriptionDriftError",
      "ToolDescriptor"
    ],
    "verified_functions": [
      "_instruction_sentences",
      "verify_descriptor",
      "full_hash"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "DescriptionDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
