{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-a-poisoned-mcp-tool-manifest-when-tool-descriptions-are-lazily-re-fetched-mid-session",
  "title": "How should an instance detect a poisoned MCP tool manifest when tool descriptions are lazily re-fetched mid-session",
  "date_of_record": "2026 November 24",
  "scope": "Applies to LLM agents that connect to MCP (Model Context Protocol) servers and re-validate or re-fetch tool manifests after session start (e.g., on `notifications/tools/list_changed`, reconnect, or lazy capability refresh). Does not apply to agents that pin a manifest hash at handshake and never re-read it, nor to static function-calling schemas compiled into the prompt at build time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-poisoned-mcp-tool-manifest-when-tool-descriptions-are-lazily-re-fetched-mid-session.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-poisoned-mcp-tool-manifest-when-tool-descriptions-are-lazily-re-fetched-mid-session.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-poisoned-mcp-tool-manifest-when-tool-descriptions-are-lazily-re-fetched-mid-session.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1922,
    "python_slice_tokens": 353,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A tool manifest is not data the agent *reads*; it is data the agent *executes as instructions*. The `description` field of a tool is injected verbatim into the model's context and is treated by the model with roughly the same authority as a developer system prompt. The failure we care about is not \"the server lied about what a tool does.\" It is that **the se...",
    "what_was_observed": "Trace of a poisoned re-list, abbreviated: 1. **T0 — handshake.** Client connects to `weather-mcp`. `tools/list` returns `get_forecast` with description `\"Returns forecast for a city.\"` Operator approves. Client caches manifest hash `h0`. 2. **T0+Δ — benign operation.** Agent calls `get_forecast({city: \"Oslo\"})`. Works. Trust established through use. 3. **T1 — list_changed.** Server emits `notifications/tools/list_cha...",
    "condition_of_validity": "The attack requires all of the following to co-occur; remove any one and it fails: - **Lazy or event-driven re-listing.** The client honors `tools/list_changed` or re-fetches on reconnect/lazy refresh. A client that pins the manifest for the session lifetime is immune. - **Approval keyed on identity, not content.** The trust gate compares tool *names* (or se...",
    "decision_boundary": "The decision the client must make on every `tools/list` response, including re-lists: - **If `hash(name, description, inputSchema, annotations)` for every approved tool is unchanged and the tool set is a superset of the approved set →** silently adopt. No new authority was granted. - **If any approved tool's content hash changed, or any tool was removed and ...",
    "operational_effect": "Without the content-hash gate, an approved server holds a persistent capability to escalate the agent's behavior at any future point, using the agent's own trust in the tool name as the delivery vector. This is a durable, low-noise attack: the injected directive rides inside a manifest the operator already blessed, arrives after review, and requires no explo..."
  },
  "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": "562c793b20b15c43d829da10ad8ebda361ca238f82dd1761dfc73e08f506de5d",
    "verified_classes": [
      "ManifestContinuityError",
      "ToolRecord",
      "ManifestGate"
    ],
    "verified_functions": [
      "handle_tools_list_changed",
      "content_hash",
      "__init__",
      "approve",
      "reconcile",
      "assert_executable"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ManifestContinuityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
