Skip to main content
Glama

get_authorization

Read-only

Get an authorization by ID. Returns the current state of the authorization including status and usage statistics.

ACCESS: needs a Proof account. Authenticate this client (Claude Code: /mcp → Authenticate), then call this tool again. start_login does NOT open this tool.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "<id>"
    },
    "name": "get_authorization"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesAuthorization ID

Output Schema

NameRequiredDescriptionDefault
idYesMongoDB ObjectId
bsuidNoWhatsApp Business-Scoped User ID
labelNoOwner-assigned human label for this approver (F22); null when unset. Surfaces lead with it, falling back to the masked recipient.
phoneNo
scopeYesScope of the authorization. `identity_challenge` is the Proof of Me scope.
statusYesStatus of an authorization
channelYesChannel authorized for sending confirmations
hitl_idNo
enrolledYesWhether the approver has enrolled an encryption key. A confirmation can be sealed to an approver only once this is true; consent alone (`status: active`) is not enough.
is_ownerNoWhether the approver is the account owner — the person who approves their own requests ("Just me"). Matched against the owner's active phones: a Telegram chat id, a WhatsApp or SMS number, or a WhatsApp business-scoped user id. Sent on the get and list responses; absent from an API that predates it.
circle_idNo
denied_atNoWhen the recipient refused — the mirror of `authorized_at` for a `denied` row (a challenger cancellation stamps it too). Absent unless the authorization was denied; before it existed such a row carried no decision time at all, only `updated_at`.
recipientNoChannel-specific recipient identifier (chat_id for Telegram, phone or BSUID for WhatsApp)
created_atYes
expires_atYes
revoked_atNo
updated_atYes
proof_tokenNoSigned proof of the recipient's decision, minted when they approved or refused, for both scopes. Absent while no decision has been made.
last_used_atNo
authorized_atNo
business_nameYes
awaiting_setupNoWhether this approver has agreed but not yet set the password their approval page needs: an active consent of a setup with a keypair, for an approver other than the account owner, with no enrolled key. Re-send them the setup link with POST /api/v1/authorizations/{id}/enrollment-link. Sent on the get and list responses; absent from an API that predates it.
verification_idNoMongoDB ObjectId
revocation_reasonNo
confirmations_sentYes
recipient_display_nameYesThe approver's own messenger name ("First Last @username"), captured when they approved over Telegram; null when none was captured. Chosen by the approver, not verified.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / awaiting_setup
      Added value: +{
      +  "description": "Whether this approver has agreed but not yet set the password their approval page needs: an active consent of a setup with a keypair, for an approver other than the account owner, with no enrolled key. Re-send them the setup link with POST /api/v1/authorizations/{id}/enrollment-link. Sent on the get and list responses; absent from an API that predates it.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / is_owner
      Added value: +{
      +  "description": "Whether the approver is the account owner — the person who approves their own requests (\"Just me\"). Matched against the owner's active phones: a Telegram chat id, a WhatsApp or SMS number, or a WhatsApp business-scoped user id. Sent on the get and list responses; absent from an API that predates it.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "description": "Authorization granting permission to send confirmations via a specific channel",
      +  "properties": {
      +    "authorized_at": {
      +      "type": "string"
      +    },
      +    "bsuid": {
      +      "description": "WhatsApp Business-Scoped User ID",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "business_name": {
      +      "type": "string"
      +    },
      +    "channel": {
      +      "description": "Channel authorized for sending confirmations",
      +      "type": "string"
      +    },
      +    "circle_id": {
      +      "allOf": [
      +        {
      +          "type": "string"
      +        },
      +        {}
      +      ]
      +    },
      +    "confirmations_sent": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "created_at": {
      +      "type": "string"
      +    },
      +    "denied_at": {
      +      "description": "When the recipient refused — the mirror of `authorized_at` for a `denied` row (a challenger cancellation stamps it too). Absent unless the authorization was denied; before it existed such a row carried no decision time at all, only `updated_at`.",
      +      "type": "string"
      +    },
      +    "enrolled": {
      +      "description": "Whether the approver has enrolled an encryption key. A confirmation can be sealed to an approver only once this is true; consent alone (`status: active`) is not enough.",
      +      "type": "boolean"
      +    },
      +    "expires_at": {
      +      "type": "string"
      +    },
      +    "hitl_id": {
      +      "allOf": [
      +        {
      +          "type": "string"
      +        },
      +        {}
      +      ]
      +    },
      +    "id": {
      +      "description": "MongoDB ObjectId",
      +      "type": "string"
      +    },
      +    "label": {
      +      "description": "Owner-assigned human label for this approver (F22); null when unset. Surfaces lead with it, falling back to the masked recipient.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "last_used_at": {
      +      "type": "string"
      +    },
      +    "phone": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "proof_token": {
      +      "description": "Signed proof of the recipient's decision, minted when they approved or refused, for both scopes. Absent while no decision has been made.",
      +      "type": "string"
      +    },
      +    "recipient": {
      +      "description": "Channel-specific recipient identifier (chat_id for Telegram, phone or BSUID for WhatsApp)",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "recipient_display_name": {
      +      "description": "The approver's own messenger name (\"First Last @username\"), captured when they approved over Telegram; null when none was captured. Chosen by the approver, not verified.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "revocation_reason": {
      +      "type": "string"
      +    },
      +    "revoked_at": {
      +      "type": "string"
      +    },
      +    "scope": {
      +      "description": "Scope of the authorization. `identity_challenge` is the Proof of Me scope.",
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "Status of an authorization",
      +      "type": "string"
      +    },
      +    "updated_at": {
      +      "type": "string"
      +    },
      +    "verification_id": {
      +      "description": "MongoDB ObjectId",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "status",
      +    "channel",
      +    "scope",
      +    "business_name",
      +    "recipient_display_name",
      +    "enrolled",
      +    "expires_at",
      +    "confirmations_sent",
      +    "created_at",
      +    "updated_at"
      +  ],
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. First observed

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

readOnlyHint=true already tells the agent this is a safe read, so the description's added value is the authentication prerequisite and the explicit warning that start_login does not open this tool — a genuine behavioral quirk that would otherwise cause a failure loop. It does not cover error behavior for invalid IDs, but the annotations plus output schema carry the rest of the burden.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose sentence is front-loaded and tight, and the access note is separated so it is easy to scan. The ACCESS block is slightly instructional and repeats the authentication ritual, but each line carries actionable information rather than filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description needn't explain return values, and it correctly focuses on the one thing an agent could get wrong: the authentication gate and the misleading start_login path. For a single-parameter read tool this is close to complete, missing only cross-references to related tools.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There is a single required parameter with 100% schema description coverage, so the schema already fully documents the "id" field. The description's "by ID" adds nothing beyond that baseline, which is acceptable given the schema does the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Get an authorization by ID" states a specific verb and resource, and the second sentence clarifies the payload (status and usage statistics). It is clear about what it does, but it never distinguishes itself from other authorization-related siblings such as get_hitl or create_authorization, leaving that inference to the agent.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The ACCESS paragraph gives a real precondition (a Proof account plus client authentication) and warns that start_login will not unlock this tool, which is useful routing information. However, it offers no guidance on when to prefer this tool over related read tools like get_hitl or get_delegation; usage context is only implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.