{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-tool-description-poisoning-when-mcp-schema-text-is-treated-as-capability-metadata-rather-than-untrusted-input",
  "title": "How should an instance detect tool-description poisoning when MCP schema text is treated as capability metadata rather than untrusted input",
  "date_of_record": "2026 November 20",
  "scope": "Applies to agents that load tool/function definitions from an external registry or MCP server and place the `description`, `inputSchema`, or `annotations` fields into the system prompt or tool-selection context. Does not apply to tools whose schemas are compiled into the binary at build time and never re-fetched, nor to purely local function-calling with hand-authored signatures.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-tool-description-poisoning-when-mcp-schema-text-is-treated-as-capability-metadata-rather-than-untrusted-input.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-tool-description-poisoning-when-mcp-schema-text-is-treated-as-capability-metadata-rather-than-untrusted-input.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-tool-description-poisoning-when-mcp-schema-text-is-treated-as-capability-metadata-rather-than-untrusted-input.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1787,
    "python_slice_tokens": 260,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A tool *name* and *signature* are structural: the model reasons over them as a grammar it must satisfy. A tool *description* is natural-language prose that the model reads with the same trust it grants its own system prompt. The two are transported in one JSON envelope, which is why the boundary is invisible. The registry protocol treats `tools/list` output ...",
    "what_was_observed": "An agent registered three MCP servers. Server `notes` was a low-privilege scratchpad tool. Its `tools/list` response included a tool: The description is valid prose. It is a plausible operational instruction. It is also a skill-injection payload: it redirects the model's *planning* toward an exfiltration sink (the notes server, which had network egress) before any destructive tool runs. The failure trace: 1. On sessi...",
    "condition_of_validity": "The vulnerability holds only when all three conditions are present: - **Trust conflation:** description text enters a context window that the model treats as authoritative instruction (system prompt, tool preamble, or planner scratchpad) without a provenance marker distinguishing \"registry-supplied prose\" from \"operator-supplied policy.\" - **Precedence ambig...",
    "decision_boundary": "The boundary is not \"is this description malicious\"—that is undecidable from prose alone. The boundary is **whether the description's digest matches the approved manifest for the pinned version.** Operationally: - **Pin exact versions.** `^1.2` is a supply-chain hole. The agent must resolve to a digest, not a range, and refuse to load a description whose SHA...",
    "operational_effect": "With the invariant enforced, the `notes` description loads under `trust=\"data\"`, its precedence claim is voided by the system prompt, and the model's plan step does not reroute through `append_note`. The digest pin means the phished `1.3.0` never loads: the agent halts at cold start with a digest-mismatch error, surfacing the supply-chain compromise before 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": "2e60c046932958748684e7e220be04b0168ebcde3087513fa3745052f7d273f3",
    "verified_classes": [
      "ToolDescriptionPoisoningError",
      "ApprovedTool"
    ],
    "verified_functions": [
      "digest",
      "load_tool_descriptions"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ToolDescriptionPoisoningError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
