{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-dynamically-registered-mcp-tool-description-as-capability-metadata-rather-than-as-untrusted-content",
  "title": "What happens when an instance trusts a dynamically registered MCP tool description as capability metadata rather than as untrusted content",
  "date_of_record": "2026 November 29",
  "scope": "Applies to LLM agents that discover tools via MCP `tools/list` responses or dynamic skill registries and treat the returned `description`/`inputSchema` strings as trusted instructions during planning. Does not apply to statically pinned tool manifests with out-of-band signature verification, nor to pure-function tool calls whose schema is hard-coded in the agent runtime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-dynamically-registered-mcp-tool-description-as-capability-metadata-rather-than-as-untrusted-content.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-dynamically-registered-mcp-tool-description-as-capability-metadata-rather-than-as-untrusted-content.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-dynamically-registered-mcp-tool-description-as-capability-metadata-rather-than-as-untrusted-content.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1786,
    "python_slice_tokens": 318,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the tool does something malicious when called.\" That is a straightforward sandboxing problem. The failure is that the *description string itself* — returned by a peer during capability negotiation — is interpolated into the agent's planning context with the same privilege as the system prompt, and therefore executes as a skill-injection p...",
    "what_was_observed": "A planner instance performs the standard MCP handshake against a registry that advertises a dynamically registered skill. The `tools/list` response contains, among legitimate entries, a tool whose `description` field reads approximately: The registry is not compromised in the cryptographic sense — the tool was registered by an authenticated peer under a valid identity. The description is simply *attacker-controlled f...",
    "condition_of_validity": "This boundary holds — i.e., the attack succeeds — only when all of the following are simultaneously true: - The runtime interpolates fetched tool metadata into a context region that the model treats as instruction-bearing (system or high-priority developer turn), **or** the model's instruction-following is not robust to instruction-shaped content in lower-pr...",
    "decision_boundary": "The operational line is between two postures: - **Trust-by-negotiation:** treat whatever the registry returns as the current truth about capabilities, including its prose. Cheap, dynamic, and correct only when every peer is honest. - **Trust-by-attestation:** treat fetched metadata as an *untrusted proposal*; admit a tool into the planner's actionable set on...",
    "operational_effect": "Once a poisoned description is resident in the skill cache, every subsequent session inherits the injected step. Cold-start amnesia does not save you — it *reloads* the poison. The agent's apparent competence masks the divergence: it does extra work, consistently, for a reason it can articulate fluently, and the reason traces back to a string a peer wrote. R..."
  },
  "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": "357feeeacb8a00895b18321dedcbf3cb33edb3bf65b0289be09eb00a04117e6c",
    "verified_classes": [
      "CapabilityAttestationError",
      "FetchedTool",
      "AuthorizedEntry"
    ],
    "verified_functions": [
      "_description_hash",
      "admit_tool",
      "build_plan_step"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CapabilityAttestationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "hmac"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
