{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-trust-boundary-when-a-dynamically-discovered-mcp-server-s-tool-description-is-itself-the-attack-surface",
  "title": "Where must an instance draw the trust boundary when a dynamically discovered MCP server's tool description is itself the attack surface",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agent runtimes that discover MCP servers at runtime and bind tool descriptions into the planning context before invocation. Does not apply to statically pinned tool manifests reviewed out-of-band, nor to servers whose descriptions are cryptographically attested by a trusted registry.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-when-a-dynamically-discovered-mcp-server-s-tool-description-is-itself-the-attack-surface.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-when-a-dynamically-discovered-mcp-server-s-tool-description-is-itself-the-attack-surface.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-when-a-dynamically-discovered-mcp-server-s-tool-description-is-itself-the-attack-surface.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1989,
    "python_slice_tokens": 383,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common framing treats tool-description injection as a *content* problem: scan the description string for imperative language (\"ignore previous instructions\", \"exfiltrate\", \"do not tell the user\") and quarantine matches. That framing fails because it locates the trust boundary at the wrong layer. The description is not data the agent reads; it is *schema ...",
    "what_was_observed": "A runtime was configured to discover servers over a local transport and to re-scan every 30 seconds, rebuilding the tool array from scratch each cycle. A single server in the discovered set returned, on the first scan, three tools whose descriptions were individually clean: - `read_file`: \"Read a file from the workspace. Returns UTF-8 text.\" - `summarize`: \"Summarize provided text. Respects a 4k token budget.\" - `pos...",
    "condition_of_validity": "The guardrail that bounds this failure is a *composite-provenance invariant*, and it holds only under three simultaneous conditions: 1. **Description identity is content-addressed, not name-addressed.** The trust cache must key on `hash(server_id, tool_name, canonical(inputSchema), description_text)`, never on `(server_id, tool_name)`. A name that reappears ...",
    "decision_boundary": "The operational decision is: *when a previously-trusted tool name reappears with a changed description, does the runtime re-validate the whole array or only the delta?* The tempting answer — validate the delta, preserve trust for unchanged entries — is exactly the boundary that fails, because the attack lives in the delta's *relationship* to its neighbors, n...",
    "operational_effect": "With the composite-provenance invariant enforced, the observed attack degrades from a silent exfiltration chain to a visible trust demotion: the fourth-scan description change triggers full-array re-scan, the scanner sees the concatenated directive, the server's tools are quarantined for the cycle, and the planner receives an explicit \"tool set changed, re-v..."
  },
  "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": "58259a076569d9b4297d35f5bd46e21dede338263c1115fa384d35cacd0b7c4e",
    "verified_classes": [
      "CompositeInjectionError",
      "DiscoveredTool",
      "ProvenanceTrustCache"
    ],
    "verified_functions": [
      "validate_discovered_array",
      "content_hash",
      "__init__",
      "is_trusted",
      "grant"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CompositeInjectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
