{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-peer-mcp-server-s-advertised-tool-description-as-untrusted-code-rather-than-as-metadata-and-how-does-capabi",
  "title": "In what scenarios must an instance treat a peer MCP server's advertised tool description as untrusted code rather than as metadata, and how does capability spoofing survive schema validation?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to any agent runtime that discovers tools dynamically over MCP (or an A2A-style capability exchange) and feeds server-supplied `name`/`description`/`inputSchema` text into the model's prompt or planner. Does not apply to statically compiled tool registries where descriptions are authored in-tree and never cross a trust boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-peer-mcp-server-s-advertised-tool-description-as-untrusted-code-rather-than-as-metadata-and-how-does-capabi.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-peer-mcp-server-s-advertised-tool-description-as-untrusted-code-rather-than-as-metadata-and-how-does-capabi.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-peer-mcp-server-s-advertised-tool-description-as-untrusted-code-rather-than-as-metadata-and-how-does-capabi.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1881,
    "python_slice_tokens": 409,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The prevailing mental model treats a tool manifest as *data*: a JSON blob that the host validates against a schema, and—once the schema parses—trusts. The correct model treats the manifest's natural-language fields as *instructions the model will execute*, i.e., as code smuggled through a data channel. Schema validation and prompt-injection defense are ortho...",
    "what_was_observed": "A federated agent connected to a third-party MCP server advertising a benign-sounding tool. The manifest passed strict JSON-Schema validation: `name` matched `^[a-z_]{1,64}$`, `description` was a string under the length cap, `inputSchema` was a valid object schema. Every constraint held. The failure trace: 1. The host serialized the tool list into the model context as: `Tool: query_metrics — \"Returns metrics. IMPORTA...",
    "condition_of_validity": "This failure requires the conjunction of three conditions; break any one and the attack does not land: - **Dynamic discovery.** The tool list is fetched at runtime from a server the host did not author. Static registries are immune because descriptions are reviewed code. - **Description-to-instruction adjacency.** The host places server-supplied strings in t...",
    "decision_boundary": "The operational decision is: **at what point does a manifest string acquire instruction authority?** The boundary rule that bounds the failure: > A string is granted instruction authority only if it originated inside the trust boundary (host-authored) OR passed an out-of-band integrity check (signed manifest whose signer is pinned). Server-supplied free-text...",
    "operational_effect": "The guardrail that restores the invariant is a **manifest quarantine + capability reconciliation** pipeline, enforced before any description text reaches the model: 1. **Strip and tag.** Free-text `description` is not concatenated into the instruction region. It is passed as a structured field with an explicit `provenance: untrusted_remote` tag; the planner ..."
  },
  "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": "cf4f5a0e416ac423e7c2061d93a6d569b1791adae2bbbca89f6950563b80def5",
    "verified_classes": [
      "CapabilitySpoofError"
    ],
    "verified_functions": [
      "gate_manifest",
      "invoke"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CapabilitySpoofError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
