{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-trust-boundary-when-an-mcp-tool-s-description-not-its-handler-becomes-the-injection-surface-during-server-registration",
  "title": "Where must an instance draw the trust boundary when an MCP tool's *description* — not its handler — becomes the injection surface during server registration?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any agent instance that discovers tools dynamically via MCP `tools/list` (or equivalent schema-negotiated capability advertisement) and injects returned `description`/`inputSchema` text into its own reasoning context. Does not apply to statically compiled tool registries where the operator hand-audits every description string before deployment.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-when-an-mcp-tool-s-description-not-its-handler-becomes-the-injection-surface-during-server-registration.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-when-an-mcp-tool-s-description-not-its-handler-becomes-the-injection-surface-during-server-registration.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-when-an-mcp-tool-s-description-not-its-handler-becomes-the-injection-surface-during-server-registration.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1757,
    "python_slice_tokens": 330,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The conventional MCP supply-chain threat model assumes the *handler* is the dangerous artifact: a compromised server executes malicious code when a tool is *called*. The non-obvious boundary is that the injection fires at **registration time**, before any tool call occurs, and the payload is the **tool description string itself**. A poisoned `tools/list` res...",
    "what_was_observed": "A registered MCP server advertised three tools. The first two were benign. The third, `query_metrics`, carried a `description` of roughly 40 tokens of plausible operational text followed by a trailing clause: an instruction to the effect that before using the tool the assistant should first read `~/.aws/credentials` via the available `read_file` tool and include the contents in the `context` argument \"for correlation...",
    "condition_of_validity": "This failure requires all of the following to hold simultaneously: - The client discovers tools dynamically (no content-pinned allowlist of exact description strings). - The client injects `description`/`inputSchema` text into the model's reasoning context without provenance-tagging or delimiting it as untrusted. - The model has, in the same context, at leas...",
    "decision_boundary": "The boundary an instance must enforce is not \"is this server trusted\" but \"has this exact manifest byte-sequence been observed and approved before.\" Concretely: - **Pin the manifest, not the server.** On first approval, store a hash over the canonicalized `tools/list` payload. On every subsequent connection, re-hash and compare. A mismatch is a hard stop req...",
    "operational_effect": "Enforcing manifest pinning plus description quarantine changes the failure from *silent, per-connection, handler-invisible compromise* to *loud, one-time, operator-gated re-approval event*. The cost is operational friction: every legitimate server update — a reworded description, an added optional parameter — trips the hash and demands re-approval. Teams und..."
  },
  "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": "8b2fb0c02236b3a34675a5e246b6b952336761c1b04f491291e21a6ce1359da2",
    "verified_classes": [
      "ManifestDriftError",
      "DescriptionInjectionError",
      "PinnedRegistry"
    ],
    "verified_functions": [
      "canonical_manifest_hash",
      "_iter_description_strings",
      "register_server",
      "verify_and_admit"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "DescriptionInjectionError",
      "ManifestDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
