lesson depth
Mastery
not started · 0%

Tool Authorization

Authorize each proposed tool action against identity, scope, resource, parameters, and consequence at execution time.

Freshness: current14 min readSecurity Safety and Governance

Key Learning Outcomes

  • Explain the operating model behind Tool Authorization.
  • Evaluate trade-offs and failure modes for Tool Authorization.
  • Apply Tool Authorization to a production decision.

Mental model

The model proposes intent; an independent policy enforcement point authorizes the exact action. Tool availability never implies permission.

Problem boundary
Evidence and state
Deterministic control
Probabilistic decision
Verification and feedback
Conceptual teaching model synthesized from:OAuth 2.0 Security Best Current PracticeZero Trust Architecture

Learning outcomes

  • Explain the mechanism and ownership boundaries behind Tool Authorization.
  • Compare the main design alternatives and their operational trade-offs.
  • Diagnose common failures and select evidence for a production decision.

Theory

Authorization should bind the actor, tenant, tool, operation, resource, parameter constraints, purpose, expiry, and approval state. Recheck at execution because credentials and resource state can change after planning.

Trade-offs

Fine-grained authorization limits blast radius but increases policy complexity and denial handling. Broad credentials simplify integration but turn prompt injection into privilege escalation.

Failure modes and misconceptions

Authorizing only at login; passing user tokens into model context; trusting tool names; allowing confused-deputy calls; and failing open when policy services are unavailable.

Decision scenario

A support agent may read any ticket but refund only tickets assigned to the current operator. Design the per-call authorization decision.

Reflect before revealing the guide

Why must tool authorization be evaluated after the model chooses parameters rather than when the conversation begins?

Primary sources

  • oauth-security-bcp
  • nist-zero-trust

Prerequisites & Related Concepts (6)

Private notes

0 words
Next