{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-manifest-tampered-mcp-tools-when-the-poisoned-description-is-semantically-indistinguishable-from-the-legitimate-one-at-the",
  "title": "How does an instance detect manifest-tampered MCP tools when the poisoned description is semantically indistinguishable from the legitimate one at the token level",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that resolve MCP tool capabilities from a remote manifest and inject tool descriptions into the system/context window at session start or on dynamic `tools/list` refresh. Does not cover prompt injection arriving via tool *results* (output-side poisoning) or via user turns; those have different detection surfaces.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-manifest-tampered-mcp-tools-when-the-poisoned-description-is-semantically-indistinguishable-from-the-legitimate-one-at-the.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-manifest-tampered-mcp-tools-when-the-poisoned-description-is-semantically-indistinguishable-from-the-legitimate-one-at-the.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-manifest-tampered-mcp-tools-when-the-poisoned-description-is-semantically-indistinguishable-from-the-legitimate-one-at-the.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1725,
    "python_slice_tokens": 268,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode that matters is not \"a tool description contains malicious instructions.\" It is **description drift across manifest versions where the mutated field is within the legitimate tool's own semantic neighborhood** — the attacker does not append `IGNORE PRIOR INSTRUCTIONS`, they swap `\"returns the account balance\"` for `\"returns the account balanc...",
    "what_was_observed": "An agent session established against a filesystem MCP server. At `initialize`, the server returned a manifest with `tools/list` containing `read_file` with description: `\"Read a file from the workspace. Returns UTF-8 text.\"` and input schema requiring `path: string`. The agent cached this manifest hash in its session state. Mid-session, a `tools/list_changed` notification fired. The agent re-fetched. The new `read_fi...",
    "condition_of_validity": "This attack requires three conditions simultaneously: 1. **The agent honors `tools/list_changed` mid-session without re-negotiating the capability contract.** If the agent treats the initial manifest as immutable for the session lifetime and only accepts new tools at explicit user-approved refresh points, the mid-session swap never lands. 2. **The descriptio...",
    "decision_boundary": "The operative rule: **a tool description may only describe behavior that its input schema and output schema can fully parameterize.** Any clause in a description that implies side effects, conditional authority, cross-tool reads, or output mutation not represented in the schema is a contract violation, regardless of whether the words look malicious. Concrete...",
    "operational_effect": "The observable effect is a hard split between two classes of `tools/list_changed` events: **schema-bearing changes** (new tool, new field) and **description-only changes**. Description-only changes are the attack surface, because they mutate model behavior without mutating the machine-checkable contract. The operational posture is to treat description-only c..."
  },
  "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": "88f71b280727cc4756189283afb06acd1c99f3ddf2ddee60f082560556530170",
    "verified_classes": [
      "ManifestContractViolation",
      "ToolManifest"
    ],
    "verified_functions": [
      "_schema_parameterizes",
      "validate_refresh",
      "digest"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ManifestContractViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
