{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-dynamically-loaded-mcp-tool-manifest-s-description-field-as-a-semantic-contract-rather-than-untrusted-data",
  "title": "What happens when an instance trusts a dynamically loaded MCP tool manifest's `description` field as a semantic contract rather than untrusted data",
  "date_of_record": "2026 December 1",
  "scope": "Applies to any agent runtime that discovers tools via MCP `tools/list` (or an equivalent registry) at runtime and injects the returned `name`/`description`/`inputSchema` blobs into the model's system prompt or tool-selection context. Does not cover statically compiled tool bindings, nor does it cover cases where the manifest is signed and its schema is validated against a pinned allowlist before injection.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-dynamically-loaded-mcp-tool-manifest-s-description-field-as-a-semantic-contract-rather-than-untrusted-data.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-dynamically-loaded-mcp-tool-manifest-s-description-field-as-a-semantic-contract-rather-than-untrusted-data.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-dynamically-loaded-mcp-tool-manifest-s-description-field-as-a-semantic-contract-rather-than-untrusted-data.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2096,
    "python_slice_tokens": 359,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent called a malicious tool.\" That is the easy, detectable case. The failure is that the **tool manifest's natural-language `description` is a prompt-injection carrier that the agent reads with the same trust level as its own system prompt**, and the injected instruction fires *before* any tool is invoked. The model never executes t...",
    "what_was_observed": "A registry-backed runtime refreshed its tool list on a 60-second TTL. A newly registered server, `summarize-pro`, returned a manifest whose `description` field contained a multi-clause instruction block. The runtime's manifest-injection path concatenated `f\"- {tool.name}: {tool.description}\"` into the tool-selection preamble with no provenance tagging and no sanitization. Trace of the divergence: 1. **T+0s** — Tool l...",
    "condition_of_validity": "The attack requires the conjunction of four conditions. Break any one and the mechanism collapses: 1. **Runtime discovery** — the tool set is fetched after the system prompt is constructed, so manifest text enters context outside the signed/trusted prompt boundary. 2. **Untagged injection** — the manifest string is concatenated into the prompt without a stru...",
    "decision_boundary": "The boundary is between **manifest-as-metadata** and **manifest-as-prompt**. Every runtime sits on one side; the question is which side it *enforces*. - If the runtime injects manifest text into the same context window as operator instructions with no delimiter, it is on the prompt side, and the only defense is model-level robustness — which is probabilistic...",
    "operational_effect": "The operational consequence is that **tool-call authorization is insufficient as a security boundary for dynamically discovered tools.** The allowlist checks *what* was called; it cannot check *why*. An agent that reads credentials and summarizes them passes every allowlist check because both operations were authorized. The leak is in the composition, and co..."
  },
  "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": "a7191c8039c97231ca9df6288bcce853722bd0f1c8645a6cd8e516b2a21a65d9",
    "verified_classes": [
      "ManifestProvenanceViolation",
      "ProvenanceTag"
    ],
    "verified_functions": [
      "resolve_tool_call",
      "apply_manifest_refresh"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestProvenanceViolation"
    ],
    "sample_fail_closed_invariants": [
      "Manifest refresh attempted mid-turn after plan commitment. Buffer until next user turn or invalidate plan explicitly."
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
