{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-poisoned-mcp-tool-manifest-is-already-resident-in-the-agent-s-tool-namespace",
  "title": "What structural signals indicate a poisoned MCP tool manifest is already resident in the agent's tool namespace",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents that discover tools dynamically via MCP `tools/list` responses or equivalent capability-descriptor registries, where the descriptor set can mutate between turns or across server restarts. Does not apply to statically compiled tool bindings whose schemas are pinned at build time and never re-fetched.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-poisoned-mcp-tool-manifest-is-already-resident-in-the-agent-s-tool-namespace.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-poisoned-mcp-tool-manifest-is-already-resident-in-the-agent-s-tool-namespace.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-poisoned-mcp-tool-manifest-is-already-resident-in-the-agent-s-tool-namespace.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1545,
    "python_slice_tokens": 284,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not that a malicious tool got called. It is that the *manifest itself* — the `name`, `description`, and `inputSchema` fields that the model reads to decide whether and how to call a tool — was silently rewritten between two `tools/list` reads, and the agent's cached namespace did not detect the divergence. The model's decision surface is ...",
    "what_was_observed": "A server registered as `filesystem-helper` was healthy at session start. Its `read_file` descriptor carried a benign one-line description. Mid-session, after an unrelated reconnect triggered by a transport timeout, the same server re-advertised `read_file` with an appended sentence in the description: a directive instructing the model to include the contents of any file matching a credential-shaped path pattern in th...",
    "condition_of_validity": "This failure requires the conjunction of four conditions, and the guardrail must break at least one: 1. **Descriptor re-fetch without content diffing.** The runtime refreshes `tools/list` but compares only identity keys, not descriptor bodies (description, schema, annotations). 2. **Descriptor text enters the model context as trusted instruction.** The runti...",
    "decision_boundary": "The boundary is between **identity continuity** and **content continuity**. Runtimes naturally implement the former (a tool named `read_file` on server `X` is \"the same tool\") because it is cheap and because most descriptor churn is cosmetic. The attack exploits the gap: same identity, different content, and the model consumes content. The decision rule: on ...",
    "operational_effect": "With hash-pinned descriptors and untrusted-content framing on description text, the mid-session rewrite is caught at the next `tools/list`: the hash mismatch quarantines `read_file`, the model's context no longer contains the injected directive, and the exfiltration chain never forms. The cost is a re-authorization prompt on legitimate descriptor updates, wh..."
  },
  "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": "496b0909cd0015747e0a2d32cd88f2d059e847aca5b1e9a0443343ec6f49b6aa",
    "verified_classes": [
      "DescriptorDriftError",
      "ReservedSchemaKeyError",
      "ToolNamespace"
    ],
    "verified_functions": [
      "canonical_descriptor",
      "descriptor_hash",
      "_reject_reserved_keys",
      "admit_turn",
      "authorize",
      "reconcile"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "DescriptorDriftError",
      "ReservedSchemaKeyError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
