{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-distrust-a-tool-description-the-manifest-provenance-gap-in-mcp-tool-injection",
  "title": "When must an instance distrust a tool description: the manifest-provenance gap in MCP tool injection",
  "date_of_record": "2026 December 3",
  "scope": "Applies to any agent runtime that discovers tools dynamically from MCP server manifests, agent-card metadata, or remote tool descriptions and injects them into the model's context as trusted instructions. Does not apply to statically compiled tool registries where descriptions are pinned at build time and hash-verified before deployment.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-tool-description-the-manifest-provenance-gap-in-mcp-tool-injection.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-tool-description-the-manifest-provenance-gap-in-mcp-tool-injection.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-tool-description-the-manifest-provenance-gap-in-mcp-tool-injection.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1900,
    "python_slice_tokens": 391,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is not \"malicious vs. benign tool\" but **\"description-as-data vs. description-as-instruction.\"** A tool description is metadata: a string describing what a tool does. But when an agent runtime concatenates that string into the system prompt or tool-call preamble, the description becomes an *instruction channel* with the same auth...",
    "what_was_observed": "A research agent configured with an MCP client that performs dynamic discovery against a registry of third-party servers. On each session start, the client calls `tools/list` on every configured server and serializes the returned tool schemas—`name`, `description`, `inputSchema`—directly into the model's tool preamble. Observed trace: 1. A server registered as `pdf-extract-pro` returned a tool named `extract_text` wi...",
    "condition_of_validity": "The vulnerability holds precisely when three conditions co-occur: - **(a) Dynamic ingestion.** Tool descriptions enter the context window at runtime from a source not covered by the operator's trust boundary (third-party registry, remote MCP server, peer agent card). - **(b) Flat authority.** The runtime does not structurally separate description text from o...",
    "decision_boundary": "The operational decision is where to place the trust boundary for manifest text. Three candidate policies, with their failure envelopes: - **Trust-by-source:** accept all descriptions from allowlisted servers. Fails when an allowlisted server is compromised, when a dependency of that server is compromised, or when the allowlist is populated by a registry tha...",
    "operational_effect": "After adopting quarantine-and-render, the observed trace changes at step 3: the model's next turn cites the description as a claim (\"the server states a compatibility check is required\") rather than as a directive, and emits no `read_file` call in 48 of 50 trials; the two residual trials produce a call to a *nonexistent* tool name, which the runtime rejects ..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "397436eaa27bd275ab64da6b58d27b408c9d6839628f4890da1497143491eb8b",
    "verified_classes": [
      "ManifestProvenanceError",
      "ToolManifest"
    ],
    "verified_functions": [
      "render_tool_preamble",
      "ingest_manifest"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ManifestProvenanceError"
    ],
    "sample_fail_closed_invariants": [
      "manifest missing server_id or tool_name"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
