Skip to main content
Glama

wait_for_verification

Read-only

Poll a verification until it reaches a terminal state (verified, failed, expired, revoked, or cancelled). Uses exponential backoff (2s initial, 1.5x, 30s max) with jitter.

A multi-channel verification that lost the race is "cancelled" and one whose proof was withdrawn is "revoked"; both are final, so the wait returns rather than polling on.

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.

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

Input Schema

NameRequiredDescriptionDefault
idYesVerification ID to poll
timeout_secondsNoMaximum wait time in seconds (default: 50, max: 300). 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
idNoMongoDB ObjectId
typeNoType of asset being verified. Not yet available — no channel of theirs can be completed, so a create or start answers 400 `channel_not_available`: social, wallet, account.
proofNoProof token after successful verification
statusNo"pending" when the wait ran out before a terminal state; otherwise the resource's own status
channelNoChannel used for verification. Not yet available — a create or start naming one answers 400 `channel_not_available`: github, google, facebook, x, linkedin, instagram, youtube, tiktok, ethereum, solana, bitcoin, coinbase, kraken.
messageNoOn timeout: what to do next (call the tool again with the same identifier)
attemptsNo
challengeNoChallenge details for verification
created_atNo
identifierNoThe identifier being verified; absent for an identifier-free phone verification, whose number is learned only when the person completes it
updated_atNo
environmentNoWhether the verification was made with a live or a test key.
last_statusNoOn timeout: the last non-terminal status observed, or null when none was
verified_atNo
max_attemptsNo
waited_secondsNoOn timeout: seconds actually waited
timeout_secondsNoOn timeout: the wait budget this call was given
external_user_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / environment
      Added value: +{
      +  "description": "Whether the verification was made with a live or a test key."
      +}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "attempts": {},
      +    "challenge": {
      +      "description": "Challenge details for verification"
      +    },
      +    "channel": {
      +      "description": "Channel used for verification. Not yet available — a create or start naming one answers 400 `channel_not_available`: github, google, facebook, x, linkedin, instagram, youtube, tiktok, ethereum, solana, bitcoin, coinbase, kraken."
      +    },
      +    "created_at": {},
      +    "external_user_id": {},
      +    "id": {
      +      "description": "MongoDB ObjectId"
      +    },
      +    "identifier": {
      +      "description": "The identifier being verified; absent for an identifier-free phone verification, whose number is learned only when the person completes it"
      +    },
      +    "last_status": {
      +      "description": "On timeout: the last non-terminal status observed, or null when none was"
      +    },
      +    "max_attempts": {},
      +    "message": {
      +      "description": "On timeout: what to do next (call the tool again with the same identifier)"
      +    },
      +    "proof": {
      +      "description": "Proof token after successful verification"
      +    },
      +    "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": "Type of asset being verified. Not yet available — no channel of theirs can be completed, so a create or start answers 400 `channel_not_available`: social, wallet, account."
      +    },
      +    "updated_at": {},
      +    "verified_at": {},
      +    "waited_seconds": {
      +      "description": "On timeout: seconds actually waited"
      +    }
      +  },
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes well past readOnlyHint=true: it discloses the backoff schedule (2 s initial, 1.5x, 30 s cap, jitter), explains that cancelled and revoked are final rather than transient, and warns that waits beyond the client request timeout are cut off client-side while the server keeps polling. It also states the authentication prerequisite and how to satisfy it.

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-loads purpose and terminal states, then layers in backoff, edge-case semantics, caller obligations, and auth. Every paragraph carries distinct information, though the auth paragraph is somewhat verbose for a prerequisite that recurs across the server.

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?

An output schema exists, so return-value explanation is unnecessary, and the description still covers what an agent must know: blocking behavior, timeout handling, auth gate, and the UX obligation to echo the actionable link. Nothing material for correct invocation 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 coverage is 100%, so both id and timeout_seconds are already documented, including the 50 s default and 300 s max. The description adds no parameter-level syntax or format detail beyond the schema, though its terminal-state discussion helps interpret the returned status. Baseline 3 applies.

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 names a specific verb (poll) and resource (a verification), and enumerates the terminal states that end the wait: verified, failed, expired, revoked, cancelled. It never explicitly names the non-blocking sibling (get_verification) as the alternative, so differentiation from relatives like wait_for_confirmation is left to inference.

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?

It gives a concrete pre-call instruction (surface the link/SMS/inbox note in reply text before calling) and a retry rule (re-call with the same identifier after a timeout), plus a note that start_login does not grant access to this tool. It stops short of stating when to prefer a one-shot status check over this blocking poll.

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.