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

@proof-holdings/mcp-server

Official

wait_for_account_creation

Read-only

Poll an account-bootstrap session until the user completes verification. Uses exponential backoff (2s initial, 1.5x, 30s max) with jitter.

Instructions

Poll an account-bootstrap session until the user completes verification. Uses exponential backoff (2s initial, 1.5x, 30s max) with jitter.

Agent usage: Call this after create_account with the returned session id. Terminal states: "verified" (this server keeps the session for this connection; the user_id field in the terminal body identifies the authenticated user), "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), "account_access_off" (WhatsApp, Telegram or SMS only: the number signs in to an account that turned its Account access off, so nobody is signed in and no account is created — tell the user to sign in with an email or phone that has account access). A result with status "pending" means the wait ran out before the user finished — call this tool again with the same id. Works identically whether the underlying flow created a new User or logged in an existing one.

Before calling this for a challenge you created, make sure your reply text already shows the user what to act on — the link itself, the SMS text and number, or a note to check their inbox; a link that appeared only in a tool result is one they never saw.

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": "wait_for_account_creation"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesAccount session id from create_account
timeout_secondsNoMaximum wait time in seconds (default: 50, max: 600). Keep it under your MCP client's request timeout (the SDK default is 60 s) — a longer wait is cut off by the client while the server is still polling. On timeout the tool answers status "pending"; call it again with the same identifier.

Output Schema

NameRequiredDescriptionDefault
idNo
typeNoOutcome of an account-session creation. `account_creation` means a new User will be written on verification. `login` indicates the submitted identity matched an existing User and the session will log them in.
emailNo
statusNo"pending" when the wait ran out before a terminal state; otherwise the resource's own status
channelNoAuthentication channel
messageNoOn timeout: what to do next (call the tool again with the same identifier)
qr_codeNoBase64-encoded PNG QR code for the deep link
qr_textNoUTF-8 text QR for terminal/agent rendering
user_idNo
sms_codeNoShort code for SMS-channel reverse-OTP
deep_linkNo
created_atNo
email_sentNo
expires_atNo
email_errorNo
last_statusNoOn timeout: the last non-terminal status observed, or null when none was
sms_messageNo
verified_atNo
instructionsNo
waited_secondsNoOn timeout: seconds actually waited
timeout_secondsNoOn timeout: the wait budget this call was given

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.7.2
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "channel": {
      +      "description": "Authentication channel"
      +    },
      +    "created_at": {},
      +    "deep_link": {},
      +    "email": {},
      +    "email_error": {},
      +    "email_sent": {},
      +    "expires_at": {},
      +    "id": {},
      +    "instructions": {},
      +    "last_status": {
      +      "description": "On timeout: the last non-terminal status observed, or null when none was"
      +    },
      +    "message": {
      +      "description": "On timeout: what to do next (call the tool again with the same identifier)"
      +    },
      +    "qr_code": {
      +      "description": "Base64-encoded PNG QR code for the deep link"
      +    },
      +    "qr_text": {
      +      "description": "UTF-8 text QR for terminal/agent rendering"
      +    },
      +    "sms_code": {
      +      "description": "Short code for SMS-channel reverse-OTP"
      +    },
      +    "sms_message": {},
      +    "status": {
      +      "description": "\"pending\" when the wait ran out before a terminal state; otherwise the resource's own status"
      +    },
      +    "timeout_seconds": {
      +      "description": "On timeout: the wait budget this call was given"
      +    },
      +    "type": {
      +      "description": "Outcome of an account-session creation. `account_creation` means a new User will be written on verification. `login` indicates the submitted identity matched an existing User and the session will log them in."
      +    },
      +    "user_id": {},
      +    "verified_at": {},
      +    "waited_seconds": {
      +      "description": "On timeout: seconds actually waited"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observedv1.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond readOnlyHint, it discloses backoff parameters (2s initial, 1.5x, 30s max, jitter), that the server retains the session for this connection on success, and how the connection behaves in the "completed_elsewhere" and "account_access_off" endings — none of which the annotations convey. The `user_id` field in the terminal body is identified as the authenticated user, saving a guess about the return payload.

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 core action and backoff lead, then a clearly labeled "Agent usage" block, then the pre-call display requirement. It is longer than most and the parenthetical state glosses run dense, but each clause carries routing information rather than filler.

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?

For a polling tool that can end in four distinct states, the definition covers timing, retry semantics, session lifetime, and the user-facing action for each outcome. With an output schema present it correctly avoids describing raw return shapes and instead explains how to interpret the terminal statuses.

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 coverage is 100% and the schema already documents both `id` (from create_account) and `timeout_seconds` (default 50, max 600, client timeout caveat, pending retry). The description adds only the retry instruction with the same id, which largely restates the schema, so the baseline 3 applies.

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?

"Poll an account-bootstrap session until the user completes verification" gives a concrete verb plus resource and scopes it to sessions produced by create_account, with an explicit line that it behaves the same for new users and existing logins. An agent can separate it from the wait_for_login / wait_for_verification family without opening the schema.

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?

It states the precondition (call after create_account with the returned session id), enumerates every terminal state with the action each implies, and resolves the ambiguous case (status "pending" → call again with the same id). It also warns that the challenge text must already be visible in the reply before polling, which is a genuine when-to-use constraint.

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