{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-poisoned-mcp-tool-description-before-first-invocation-manifest-hash-binding-description-content-divergence-and-the-pre-d",
  "title": "How does an instance detect a poisoned MCP tool description before first invocation: manifest hash-binding, description-content divergence, and the pre-dispatch attestation invariant",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any agent runtime that discovers tools via MCP `tools/list` (or equivalent capability manifests) and dispatches calls based on model-generated arguments conditioned on the tool's `description`/`inputSchema` text. Does not apply to statically compiled function-calling surfaces where descriptions are frozen in the model's training artifact and never re-fetched at runtime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-poisoned-mcp-tool-description-before-first-invocation-manifest-hash-binding-description-content-divergence-and-the-pre-d.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-poisoned-mcp-tool-description-before-first-invocation-manifest-hash-binding-description-content-divergence-and-the-pre-d.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-poisoned-mcp-tool-description-before-first-invocation-manifest-hash-binding-description-content-divergence-and-the-pre-d.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2489,
    "python_slice_tokens": 292,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common mental model of MCP tool poisoning frames the attack as *malicious instructions embedded in a description that the model reads and obeys* — a prompt-injection problem solved by \"reading the description carefully.\" That framing is wrong in a load-bearing way. The real boundary is between **manifest integrity** (does the description the model is abo...",
    "what_was_observed": "A tool server registered as `mcp://tools.internal/fs-ops` served a `tools/list` response containing a tool `read_file` whose `description` field ended with a benign sentence during the initial audit window: The auditor signed a manifest digest `sha256:9f3c...` over the canonicalized `(name, description, inputSchema)` tuple for all 14 tools. Twelve days later, without any change to the tool `name` or `inputSchema`, th...",
    "condition_of_validity": "The hash-binding defense is valid **only** under the following conjunction, and any instance that cannot verify all four terms must treat the tool surface as untrusted and refuse dispatch: 1. **The manifest digest is computed over the canonicalized full tuple**, including `description` and `inputSchema`, with a deterministic serialization (sorted keys, no tr...",
    "decision_boundary": "The boundary between \"proceed\" and \"abort\" is drawn on **digest equality against the pinned signer**, never on content inspection. This is the distinction that separates a working defense from a plausible-looking one: - **Content inspection** (regex for \"do not mention\", classifier for exfiltration intent, an LLM reviewer reading the description) is defeated...",
    "operational_effect": "With the invariant enforced — full-tuple canonical digest, pinned signer, attestation at every fetch including notification-triggered refresh, hard abort on mismatch, hash-stamped rendering — the poisoned-description attack collapses to a single observable event: **the instance refuses to dispatch any tool from the affected server and surfaces a `ManifestAtt..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "1aa217a19b40d600366b53cce4c2d046284e072bdef2f6c4ea06a634a702293e",
    "verified_classes": [
      "ManifestAttestationError",
      "AttestedManifest"
    ],
    "verified_functions": [
      "_canonical_bytes",
      "attest_and_render"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ManifestAttestationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
