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

@proof-holdings/mcp-server

Official

start_login

Start a login session by sending an authentication challenge to the user's chosen channel (Telegram, WhatsApp, SMS, or email).

Instructions

Start a login session by sending an authentication challenge to the user's chosen channel (Telegram, WhatsApp, SMS, or email). Returns a session ID and, FOR TELEGRAM AND WHATSAPP ONLY, deep_link, qr_code (base64 PNG) and qr_text (UTF-8 text QR for terminal display); on sms it returns sms_message with sms_dids instead, and on email nothing to display.

Agent usage: (1) Call start_login with the desired channel and phone_number (for SMS) or email (for email). (2) Present the challenge, and WHICH FIELD depends on the channel. On telegram/whatsapp pass deep_link to render_auth_link, which returns the clickable link and a QR code to you; in a chat client the link is what the user acts on, since they are usually on the same machine. On sms deep_link is an EMPTY STRING and render_auth_link will reject it — show sms_message and let the user pick a number from sms_dids. suggested_region is always set, but the matching ENTRY in sms_dids may be missing (europe and israel appear only when a number is configured) or present with an empty did, so offer that region first only when sms_dids[suggested_region] exists and carries a number, and otherwise offer whatever the object does. On email there is nothing to display at all, and nothing to check either: a result means the mail was accepted for delivery, so tell the user to open their inbox. A delivery failure is an ERROR here, not a field — the tool answers challenge_delivery_failed and NO session exists, so do not call wait_for_login; retry, or offer another channel. Never hand qr_text to a link renderer — it is the link already rendered as QR art, so print it verbatim inside a fenced code block or not at all, because its rows stop scanning the moment one wraps or a blank line lands between them. (3) Once your reply shows the user the challenge, call wait_for_login with the returned session ID to poll until the user completes authentication. On email, tell the user to open the link and press "Sign in the browser that requested this": the page also offers "Sign in here", which signs in the browser they clicked from instead of this connection. Terminal states: "verified" (login succeeded), "failed", "expired", "completed_elsewhere" (email only: the user pressed "Sign in here" on the email link's page, so the browser they clicked from is signed in and this connection never will be — tell them so, and start a new login if this connection still needs one).

The user does not see tool results — most clients fold them away, render_auth_link's output included. Before you wait or poll, put what the user must act on into your own reply text: the link itself (not a sentence announcing it), the SMS text and number, or a note to check their inbox.

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": {
      "channel": "<channel>"
    },
    "name": "start_login"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailNoEmail address (required for email channel)
channelYesAuthentication channel
phone_numberNoPhone number in E.164 format (required for SMS channel)

Output Schema

NameRequiredDescriptionDefault
idNo
typeNo
statusNoStatus of an auth session. `completed_elsewhere` (terminal, no cookies): an email sign-in the person completed in ANOTHER browser by pressing "Sign in here" on the link's page — this session will never become `verified`. `account_access_off` (terminal, no cookies): a WhatsApp, Telegram or SMS sign-in from a number whose account has turned its Account access off — the number signs in to nothing and no account is created for it. An email sign-in never reads it: that session simply expires, so the page discloses nothing about the address.
channelNoAuthentication channel
qr_codeNoBase64-encoded QR code image
qr_textNoUTF-8 text representation of the QR code for terminal/agent display
user_idNo
deep_linkNo
created_atNoWhen the session was started. Sent by the poll.
expires_atNo
verified_atNo
instructionsNo
fallback_codeNoTelegram and WhatsApp sign-ins: the code to send the bot by hand when the deep link does not open.
fallback_messageNoTelegram and WhatsApp sign-ins: the whole message to send the bot by hand, the code included.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.12.0
    • addedOutput schema / properties / created_at
      Added value: +{
      +  "description": "When the session was started. Sent by the poll."
      +}
    • addedOutput schema / properties / fallback_code
      Added value: +{
      +  "description": "Telegram and WhatsApp sign-ins: the code to send the bot by hand when the deep link does not open."
      +}
    • addedOutput schema / properties / fallback_message
      Added value: +{
      +  "description": "Telegram and WhatsApp sign-ins: the whole message to send the bot by hand, the code included."
      +}
    • changedOutput schema / properties / status / description
      Previous value: -"Status of an auth session. `completed_elsewhere` (terminal, no cookies): an email sign-in the person completed in ANOTHER browser by pressing \"Sign in here\" on the link's page — this session will never become `verified`."New value: +"Status of an auth session. `completed_elsewhere` (terminal, no cookies): an email sign-in the person completed in ANOTHER browser by pressing \"Sign in here\" on the link's page — this session will never become `verified`. `account_access_off` (terminal, no cookies): a WhatsApp, Telegram or SMS sign-in from a number whose account has turned its Account access off — the number signs in to nothing and no account is created for it. An email sign-in never reads it: that session simply expires, so the page discloses nothing about the address."
  2. Changed3 schema fields changedv1.7.2
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / email / pattern
      Added value: +"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "channel": {
      +      "description": "Authentication channel"
      +    },
      +    "deep_link": {},
      +    "expires_at": {},
      +    "id": {},
      +    "instructions": {},
      +    "qr_code": {
      +      "description": "Base64-encoded QR code image"
      +    },
      +    "qr_text": {
      +      "description": "UTF-8 text representation of the QR code for terminal/agent display"
      +    },
      +    "status": {
      +      "description": "Status of an auth session. `completed_elsewhere` (terminal, no cookies): an email sign-in the person completed in ANOTHER browser by pressing \"Sign in here\" on the link's page — this session will never become `verified`."
      +    },
      +    "type": {},
      +    "user_id": {},
      +    "verified_at": {}
      +  },
      +  "type": "object"
      +}
  3. First observedv1.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false/destructiveHint=false; the description adds what is actually returned per channel, that `deep_link` is an EMPTY STRING on SMS and render_auth_link will reject it, that a delivery failure is an error rather than a field, and that users never see tool results so the agent must restate the challenge in its reply. That is substantial context beyond the annotations.

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?

Front-loaded with purpose and return shape, then cleanly sectioned as (1)/(2)/(3) steps with a closing caveat. It is long and leans on ALL-CAPS emphasis, but nearly every sentence carries operational detail (SMS empty deep_link, qr_text wrapping hazard, email inbox instruction) that an agent would otherwise get wrong.

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?

Output schema exists, yet channel-dependent display behavior is genuinely needed in prose because the fields differ per channel and some must be passed to another tool rather than shown. Combined with error and terminal-state handling, nothing an agent needs to call this correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description still adds conditional semantics the schema does not encode — phone_number is required for SMS, email is required for the email channel, and channel determines the return shape. It does not add format details beyond the schema's E.164/email notes, which is fine at this coverage.

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?

Opens with a specific verb and resource: 'Start a login session by sending an authentication challenge to the user's chosen channel', and enumerates the four channels. It also routes the agent to the actual siblings involved in the flow (wait_for_login, render_auth_link), so the boundary between starting a challenge and polling/rendering it is unambiguous.

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

Usage Guidelines5/5

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

Gives an explicit numbered procedure (call, present the challenge, then poll), channel-by-channel selection rules (phone_number for SMS, email for email), and a clear exclusion: on `challenge_delivery_failed` 'NO session exists, so do not call wait_for_login'. Terminal states and what to do for `completed_elsewhere` are also spelled out.

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