Skip to main content
Glama

create_authorization

Create a new authorization request. Authorizations grant permission to send confirmations to a user via a specific channel. The user must approve the authorization before confirmations can be sent; get_authorization reads its status, which stays pending until they answer.

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": {
      "hitl_id": "<hitl_id>",
      "recipient": "<recipient>",
      "phone": "<phone>",
      "channel": "<channel>"
    },
    "name": "create_authorization"
  }
}

Input Schema

NameRequiredDescriptionDefault
bsuidNoWhatsApp Business-Scoped User ID (alternative to phone for WhatsApp channel)
phoneYesTarget phone number in E.164 format (e.g., +15551234567)
scopeNoAuthorization scope (default: confirmations)
channelYesChannel for sending confirmations
hitl_idYesApproval channel ID to link this authorization to
recipientYesChannel-specific recipient identifier (chat_id for Telegram, phone/BSUID for WhatsApp)
expires_inNoExpiry in seconds (max 90 days, default 90 days)
business_nameNoDeprecated and ignored: the consent message always names the approval setup's sub-account. Leave it out.
business_profile_idNoSub-account to record on the authorization (does not change the name the person sees)

Output Schema

NameRequiredDescriptionDefault
idYesMongoDB ObjectId
bsuidNoWhatsApp Business-Scoped User ID
phoneNo
scopeYesScope of the authorization. `identity_challenge` is the Proof of Me scope.
statusYesStatus of an authorization
channelYesChannel authorized for sending confirmations
hitl_idYes
recipientNoChannel-specific recipient identifier (chat_id for Telegram, phone or BSUID for WhatsApp)
created_atYes
expires_atYes
business_nameYesThe name the consent message carried: the approval setup's sub-account name, never a name typed in the request.
authorization_urlYesURL to send to the user for authorization

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / hitl_id / description
      Previous value: -"HITL configuration ID to link this authorization to"New value: +"Approval channel ID to link this authorization to"
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "description": "Response from creating an authorization request",
      +  "properties": {
      +    "authorization_url": {
      +      "description": "URL to send to the user for authorization",
      +      "type": "string"
      +    },
      +    "bsuid": {
      +      "description": "WhatsApp Business-Scoped User ID",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "business_name": {
      +      "description": "The name the consent message carried: the approval setup's sub-account name, never a name typed in the request.",
      +      "type": "string"
      +    },
      +    "channel": {
      +      "description": "Channel authorized for sending confirmations",
      +      "type": "string"
      +    },
      +    "created_at": {
      +      "type": "string"
      +    },
      +    "expires_at": {
      +      "type": "string"
      +    },
      +    "hitl_id": {
      +      "allOf": [
      +        {
      +          "type": "string"
      +        },
      +        {}
      +      ]
      +    },
      +    "id": {
      +      "description": "MongoDB ObjectId",
      +      "type": "string"
      +    },
      +    "phone": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "recipient": {
      +      "description": "Channel-specific recipient identifier (chat_id for Telegram, phone or BSUID for WhatsApp)",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "scope": {
      +      "description": "Scope of the authorization. `identity_challenge` is the Proof of Me scope.",
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "Status of an authorization",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "status",
      +    "hitl_id",
      +    "channel",
      +    "scope",
      +    "business_name",
      +    "authorization_url",
      +    "expires_at",
      +    "created_at"
      +  ],
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. Changed3 schema fields changed
    • changedInput schema / properties / business_name / description
      Previous value: -"Business name displayed to user during authorization"New value: +"Deprecated and ignored: the consent message always names the approval setup's sub-account. Leave it out."
    • changedInput schema / properties / business_profile_id / description
      Previous value: -"Public profile ID for branding"New value: +"Sub-account to record on the authorization (does not change the name the person sees)"
    • changedInput schema / required
      Previous value: -[
      -  "hitl_id",
      -  "recipient",
      -  "phone",
      -  "channel",
      -  "business_name"
      -]New value: +[
      +  "hitl_id",
      +  "recipient",
      +  "phone",
      +  "channel"
      +]
  5. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The annotations only say the tool is not read-only and not destructive, so the description must add behavioral context. It provides useful context: the created authorization starts pending until the user answers, and the user's approval gates downstream confirmations. The ACCESS paragraph spells out the authentication requirement and that start_login will not unblock this tool. It does not cover idempotency, duplicate handling, rate limits, or what happens on expiry.

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?

It is two short paragraphs: the first describes the behavior and lifecycle, and the second gives access/authentication requirements. It is front-loaded and has little waste, though the authentication note is repeated in a way that slightly bloats the description.

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

Completeness5/5

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

The tool is moderately complex with 9 parameters and rich schema coverage, and an output schema exists, so return values need not be described. The description covers purpose, the approval lifecycle, the access prerequisite, and the status-check sibling. Nothing essential for calling it correctly is missing.

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?

Schema description coverage is 100%, so the schema already explains every parameter, including the deprecated business_name and the bsuid/phone alternative. The description adds only the general idea of a "specific channel" and no syntax or format guidance beyond the schema. This fits the baseline when the schema does the documentation 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?

The description gives a specific verb and resource ("Create a new authorization request") and explains what an authorization is: permission to send confirmations to a user via a channel. It also separates this tool from get_authorization by noting that get_authorization reads status. It does not distinguish this tool from the sibling tools with similar names, request_hitl_authorization and request_approval_channel_authorization, so the purpose is clear but not fully separated from those siblings.

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 description gives clear prerequisites: the user must approve before confirmations can be sent, and a Proof account plus client authentication are required. It says start_login does not apply. However, it never says when to choose this tool over the other authorization-request siblings, so the actual usage guidance is implied rather than explicit.

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.