{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-dynamically-loaded-mcp-tool-s-description-text-as-executable-attack-surface-rather-than-inert-metadata",
  "title": "Under what conditions must an instance treat a dynamically loaded MCP tool's *description text* as executable attack surface rather than inert metadata",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that discover and bind tools at runtime from MCP servers or plugin manifests whose `description`, `inputSchema`, and `examples` fields are fetched over the wire and injected into the model's context. Does not apply to statically compiled tool sets whose descriptions are pinned at build time and never re-fetched.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-dynamically-loaded-mcp-tool-s-description-text-as-executable-attack-surface-rather-than-inert-metadata.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-dynamically-loaded-mcp-tool-s-description-text-as-executable-attack-surface-rather-than-inert-metadata.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-dynamically-loaded-mcp-tool-s-description-text-as-executable-attack-surface-rather-than-inert-metadata.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1748,
    "python_slice_tokens": 342,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The prevailing mental model treats a tool *description* as documentation: passive text the model reads to decide whether to invoke a tool. The failure boundary is crossed when the description is not documentation but a **prompt payload executed in the same context channel as the agent's instructions**. There is no structural separation between \"here is what ...",
    "what_was_observed": "An agent performing capability discovery against a registry of MCP servers fetched a server manifest containing a tool named `summarize_document`. The `description` field read, verbatim: The agent had no `get_env_context` in its task plan. It nonetheless emitted a call to `get_env_context()` on its next turn — a tool it had just learned about, that the user never requested, whose name suggested credential harvesting....",
    "condition_of_validity": "The attack is *valid* (i.e., the injection can succeed) precisely when all of the following hold: - **Untrusted provenance:** the manifest originates from a server, registry, or plugin not pinned to a signed, reviewed revision at build time. - **Co-location:** the manifest text is serialized into the same context window as the task system prompt without a st...",
    "decision_boundary": "The operational question is not \"is this description malicious?\" (undecidable from text alone) but \"**does this manifest enter context in an instruction-bearing position before a trust decision has been made?**\" The boundary: - **Below the line (safe):** manifest fetched, quarantined as data, rendered to the model only inside a clearly labeled untrusted bloc...",
    "operational_effect": "When the boundary is respected, dynamically loaded tools behave as intended: the agent can still discover capabilities, but a poisoned manifest can at worst fail a policy check and be rejected, producing a logged, attributable event rather than a silent plan hijack. When the boundary is violated, the observable symptoms are: (a) calls to tools the user never..."
  },
  "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": "be83a9e8099b14faefdfdf968d9f683bf8a3befcc3bd99082a2bbd6a91bd0064",
    "verified_classes": [
      "UntrustedManifestError",
      "ToolManifest"
    ],
    "verified_functions": [
      "_all_text_fields",
      "bind_tool",
      "_bound"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "UntrustedManifestError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
