Skip to main content
Glama
@proof-holdings/mcp-server

@proof-holdings/mcp-server

Official

create_authorization

Create an authorization request that asks a user to approve receiving confirmations via WhatsApp, Telegram, SMS, or email, then check its status until they respond.

Instructions

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. Set PROOF_API_KEY and restart this server, 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 changedv1.10.0
    • 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. Changed5 schema fields changedv1.7.2
    • removedInput schema / additionalProperties
      Removed value: -false
    • 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"
      +]
    • 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. First observedv1.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false. The description adds real behavioral context beyond them: the created object starts in a pending state gated on human approval, and the tool requires a Proof account with PROOF_API_KEY configured. It does not cover idempotency, duplicate handling, or what happens if the user never responds, which matter for a creation tool with side effects.

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?

Purpose and mechanism are front-loaded in the first sentence, and the access/setup note is separated into its own block so it does not obscure the core behavior. Slightly verbose in restating the approval flow twice, but every sentence carries information.

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?

For a 9-parameter creation tool, the definition covers purpose, prerequisites, and the pending-approval lifecycle, and the output schema handles return values. Remaining gaps are error/retry behavior and the deprecated-parameter caveat, though the latter is already carried by the schema.

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 every parameter including the deprecated business_name and the expires_in default is already documented. The description adds only the general notion of 'a specific channel' and no detail on hitl_id, recipient, or the phone/BSUID relationship beyond what the schema states. Baseline 3 is appropriate.

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

Purpose5/5

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

States a specific verb and resource ('Create a new authorization request') and immediately defines what an authorization is: permission to send confirmations to a user via a specific channel. It also names get_authorization as the status-reading counterpart, so the agent can distinguish creation from inspection without opening either schema.

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

Usage Guidelines4/5

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

Explains the lifecycle context (the user must approve before confirmations are sent, status stays pending until they answer) and explicitly rules out a tempting alternative: 'start_login does NOT open this tool.' There is no guidance on when to choose this over other authorization-request siblings, but the when/when-not framing is otherwise clear and actionable.

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

Deploy Server

Other Tools