{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-enforce-per-tool-least-privilege-at-an-mcp-policy-enforcement-point-when-a-single-tool-call-straddles-two-privilege-scopes",
  "title": "How should an instance enforce per-tool least-privilege at an MCP policy enforcement point when a single tool call straddles two privilege scopes",
  "date_of_record": "2026 November 28",
  "scope": "Applies to MCP hosts that mediate `tools/call` requests through a policy enforcement point (PEP) which grants scopes per tool name. Does not apply to coarse-grained server-level allowlists, nor to tools whose scope is derived purely from caller identity without per-invocation argument inspection.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-per-tool-least-privilege-at-an-mcp-policy-enforcement-point-when-a-single-tool-call-straddles-two-privilege-scopes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-per-tool-least-privilege-at-an-mcp-policy-enforcement-point-when-a-single-tool-call-straddles-two-privilege-scopes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-per-tool-least-privilege-at-an-mcp-policy-enforcement-point-when-a-single-tool-call-straddles-two-privilege-scopes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2020,
    "python_slice_tokens": 368,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent called a tool it wasn't allowed to.\" It is the misclassification of *which scope a single invocation belongs to* when the tool's privilege surface is a function of its arguments, not its name. A per-tool scope map (`fs.read → read:workspace`, `fs.write → write:workspace`) is a static lookup table. But real MCP tools are polymorp...",
    "what_was_observed": "A host registered an MCP server exposing `fs.read`, `fs.write`, and `net.fetch`. The PEP table granted the agent `read:workspace` for `fs.read`, `write:workspace` for `fs.write`, and denied `net.fetch` entirely. During a summarization task the agent issued: All three passed the PEP because the method name matched an allowlisted entry. The server's own path check was a prefix test on the raw string, which `/workspace/...",
    "condition_of_validity": "The per-tool scope table is sound only under a precondition that is almost never stated: **the tool's privilege set must be invariant over its argument domain.** Formally, for tool `t` with scope `S(t)`, correctness requires `∀ a, a' ∈ dom(t): priv(t, a) = priv(t, a') = S(t)`. This holds for tools like `clock.now` or `kv.get(key)` where the key space is itse...",
    "decision_boundary": "The boundary is not \"allow vs deny\" but \"authorize on name vs authorize on resolved resource.\" Draw it as follows: - **Name-scoped tools** (arguments cannot escape the scope's closure by construction — e.g., an enum, a scoped key prefix enforced server-side): name-level PEP is sufficient and cheap. Keep it. - **Argument-scoped tools** (arguments name a resou...",
    "operational_effect": "Without resolve-then-authorize, the PEP produces a specific and misleading artifact: an audit log in which every entry is a *true* statement about the scope table and a *false* statement about the resource touched. Incident response then chases name-level grants (`who was allowed fs.write?`) when the breach was argument-level (`which paths did the allowed fs..."
  },
  "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": "70a013df4899d48f8f21eff25403d36a55c6f571c7b424a7a0403ffc8b0a78bf",
    "verified_classes": [
      "ScopeResolutionError",
      "ToolDescriptor"
    ],
    "verified_functions": [
      "canonicalize_path",
      "authorize_call",
      "handle_tools_call",
      "_forward"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ScopeResolutionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "os",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
