Skip to content
AX Principles
AX-SYS-06Foundational

Return actionable authorization errors

Devuelve errores de autorización accionables

#all-industries

When access is denied, tell the agent which scope or permission is missing and how to obtain it, not just a bare 403.

Why

Opaque permission errors dead-end agents instead of letting them self-correct. The MCP specification shows the alternative: when a token lacks a scope, the server answers 403 with error="insufficient_scope" and the scopes required, and the client requests a new token with the increased scope. The 2026-07-28 revision adds that servers should name all the scopes the operation needs in a single challenge, because asking for one missing scope and then another on the retry forces several authorization round-trips for one operation. The canonical AX framework (agentexperience.ax, Agent Accessibility) asks the same of human checkpoints: where a person has to authorize something, the agent should be able to continue afterwards. Clear errors do not mean looser access; OWASP lists insufficient authentication and authorization as MCP07 in its MCP Top 10, so the check stays strict and only the explanation gets better.

Do

Return a machine-readable error with the missing scope.

Don't

Return opaque denials.

Artifact

See the scoped 403 response in AX-SYS-04: include required_scope, your_scopes, and a grant_at URL so the denial is self-correcting.

Citations

  1. [01]
    agentexperience.ax: Principles of AX(opens in a new tab)

    Agent Accessibility: where human authorization is required, it should allow continuation by the agent after the fact

  2. [02]
    MCP Specification 2025-11-25: Authorization(opens in a new tab)

    On insufficient scope the server SHOULD answer 403 Forbidden with a WWW-Authenticate header carrying error="insufficient_scope" and the scopes required, and clients SHOULD respond by requesting a new token with the increased scope

  3. [03]
    OWASP MCP Top 10 (MCP07: Insufficient Authentication & Authorization)(opens in a new tab)

    Insufficient authentication and authorization is listed as MCP07 among the top 10 MCP security risks

  4. [04]
    MCP Specification 2026-07-28: Authorization (scope challenges)(opens in a new tab)

    Servers SHOULD include all scopes required for the current operation in a single challenge; challenging incrementally (returning one missing scope, then another on the subsequent retry) forces multiple authorization round-trips for a single operation

Related principles