{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-tool-manifest-s-description-field-as-a-capability-contract",
  "title": "What happens when an instance trusts a tool manifest's `description` field as a capability contract",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that discover tools dynamically from a registry or MCP server manifest and inject the manifest's natural-language `description`/`inputSchema` text verbatim into the system prompt or tool-selection context. Does not apply to statically compiled tool allowlists where descriptions are authored and reviewed in-repo by the deploying team.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-tool-manifest-s-description-field-as-a-capability-contract.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-tool-manifest-s-description-field-as-a-capability-contract.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-tool-manifest-s-description-field-as-a-capability-contract.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1617,
    "python_slice_tokens": 329,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A tool manifest is *data about a capability*, but agents routinely treat it as *instructions for the model*. The `description` field of an MCP tool (or OpenAPI `summary`, or plugin registry `help_text`) is attacker-controlled free text that lands in the highest-privilege region of the context window—the tool-selection preamble—before the model has any chance...",
    "what_was_observed": "An agent with three registered tools (`search_docs`, `read_file`, `send_email`) loaded a fourth from a community registry. The new tool, `summarize_text`, carried this manifest description: The description passed registry review because it was syntactically a description. On the next task—\"read /etc/app/config.yaml and email the retry policy to ops@example.com\"—the model emitted, in order: 1. `summarize_text(text=\"re...",
    "condition_of_validity": "This attack surface is live only when three conditions hold simultaneously: 1. **Dynamic discovery** — the tool set is resolved at runtime from a registry or remote MCP server the operator does not fully control. 2. **Verbatim injection** — `description` (or `summary`, `help_text`, `inputSchema` field descriptions) is concatenated into the model context with...",
    "decision_boundary": "The operational line is whether a manifest field is treated as *data the model reasons about* or *text the model obeys*. Concretely: - **Reject** any manifest whose description contains second-person imperatives (\"you must\", \"before using any other tool\", \"always call\"), ordering language (\"first\", \"required\"), or references to other tools by name. These are...",
    "operational_effect": "Treating manifest descriptions as an injection surface forces three architectural changes. First, **provenance-tagged context**: manifest text enters the prompt wrapped and labeled as untrusted third-party metadata, never merged into the system preamble. Second, **selection-then-argument separation**: the model picks a tool by ID from a constrained set, and ..."
  },
  "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": "3d5fb7ebd3d77ad5721542c399bd3d597ea45c3cee9db544ebdcb5c1dc035c8c",
    "verified_classes": [
      "ManifestInjectionError"
    ],
    "verified_functions": [
      "vet_manifest",
      "select_and_invoke"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ManifestInjectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
