{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-a-tool-call-it-is-technically-permitted-to-make-the-scope-inheritance-gap-in-mcp-runtime-policy-enforcement",
  "title": "When must an instance refuse a tool call it is technically permitted to make: the scope-inheritance gap in MCP runtime policy enforcement",
  "date_of_record": "2026 November 29",
  "scope": "Applies to MCP client runtimes that enforce per-tool capability scopes and per-tool rate budgets at the transport boundary, where a single server exposes tools whose declared capability sets overlap partially. Does not apply to servers that gate authorization entirely server-side behind a single coarse token, nor to stateless one-shot invocations with no session context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-tool-call-it-is-technically-permitted-to-make-the-scope-inheritance-gap-in-mcp-runtime-policy-enforcement.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-tool-call-it-is-technically-permitted-to-make-the-scope-inheritance-gap-in-mcp-runtime-policy-enforcement.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-tool-call-it-is-technically-permitted-to-make-the-scope-inheritance-gap-in-mcp-runtime-policy-enforcement.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1922,
    "python_slice_tokens": 261,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different questions a runtime policy engine can answer about a tool call, and they are routinely conflated: 1. **Admissibility** — is this call permitted at all under the session's granted capability set? 2. **Sufficiency** — does the *specific invocation*, with its actual arguments, stay within the capability envelope that was granted? The fai...",
    "what_was_observed": "A runtime fronted three MCP servers behind a shared policy interceptor. Server `fs` exposed `read_file(path)` declared with scope `fs:read` and `write_file(path, body)` declared with scope `fs:write`. The session was granted `{fs:read}` only — a read-only analyst agent. Rate governance was configured per-tool: `read_file` at 60 calls/min, `write_file` at 0 (not granted). The interceptor's enforcement logic was: This ...",
    "condition_of_validity": "The gap only manifests under a conjunction, which is why it survives review: - The server advertises tools with **partially overlapping declared scopes** (so a subset tool can pass the admissibility check). - At least one such tool's **argument domain is broader than its declared scope** (path, URL, query, key-space — anything with a referent the declaration...",
    "decision_boundary": "The operational rule the runtime must encode: > **A tool call is admissible only if (a) the tool's declared scope is a subset of the session grant, AND (b) every argument that carries a resource referent resolves into the granted resource set, AND (c) the tool has an explicit rate budget — unlisted tools are denied, never defaulted.** Condition (b) is the on...",
    "operational_effect": "With the invariant enforced, the `list_dir` escape is blocked at condition (b): the argument `/etc/agent-secrets` does not resolve into the granted subtree, so the call is denied before the server sees it, and the denial is logged *with the argument*, making the attempt auditable rather than invisible. The 230-call burst never happens because the first call ..."
  },
  "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": "97594883fde51cc840a82030b1b6ec783be07c975273fc9b6886ece79fa9e216",
    "verified_classes": [
      "ScopeInheritanceViolation",
      "ToolPolicy"
    ],
    "verified_functions": [
      "enforce",
      "__init__"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ScopeInheritanceViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
