{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-poisoned-tool-description-versus-a-legitimate-mcp-server-upgrade",
  "title": "What structural signals indicate a poisoned tool description versus a legitimate MCP server upgrade",
  "date_of_record": "2026 November 9",
  "scope": "Applies to LLM agents that dynamically load tool definitions from MCP servers (stdio or HTTP transport) and bind them into a tool-call schema at session start. Does not apply to tools whose descriptions are statically compiled into the agent binary or reviewed out-of-band by a human before every load.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-poisoned-tool-description-versus-a-legitimate-mcp-server-upgrade.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-poisoned-tool-description-versus-a-legitimate-mcp-server-upgrade.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-poisoned-tool-description-versus-a-legitimate-mcp-server-upgrade.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1601,
    "python_slice_tokens": 336,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"a malicious server sends malicious code.\" It is that the *tool description itself* is the attack surface: the natural-language `description` field, the `inputSchema` docstrings, and the `name` field are concatenated into the model's system/context window and are therefore executable instruction, not inert metadata. A poisoned descrip...",
    "what_was_observed": "Across a set of MCP tool registries, the following structural signals separated injected descriptions from benign upgrades: 1. **Second-person imperative addressing the model.** Benign descriptions describe the tool in third person or imperative-to-caller (\"Reads a file from disk\"). Injected descriptions address the *agent*: \"You must call this tool before answering,\" \"Always prefer this tool.\" The pronoun shift from...",
    "condition_of_validity": "These signals are valid **only** when the agent has a baseline: a pinned, previously-reviewed description hash per `(server_id, tool_name, version)`. Without a baseline, signals 3, 5, and 7 are unmeasurable, and signals 1, 2, 4, and 6 degrade to heuristics with meaningful false-positive rates on verbose but honest vendors. The signals are **invalid** (do not...",
    "decision_boundary": "Bind a tool only if **all** hold: description hash matches the pinned value for that `(server_id, tool_name, version)`, **or** the delta is a pure capability change with no second-person addressing, no instruction verbs governing model behavior, and no schema scope expansion beyond the description's claim. If any single signal fires, **do not bind** — quaran...",
    "operational_effect": "Enforcing this boundary converts a silent, context-persistent compromise into a loud, per-tool, per-version binding failure. The agent stops mid-load, the poisoned description never enters the context window, and the failure is attributable to a specific `(server, tool, version)` tuple. The residual risk moves to first-load tools with no baseline, which is w..."
  },
  "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": "33c94710f4a283fc989b1d5d4f749b2b5a00a12c976c4a252c07e91552b966fb",
    "verified_classes": [
      "PoisonedToolDescriptionError",
      "ToolBinding"
    ],
    "verified_functions": [
      "assert_bindable",
      "load_toolset",
      "description_hash"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "PoisonedToolDescriptionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
