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

@proof-holdings/mcp-server

Official

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.

Instructions

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. 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": {
      "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 changedv1.12.0
    • addedOutput schema / properties / environment
      Added value: +{
      +  "description": "Whether the verification was made with a live or a test key."
      +}
  2. 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": {
      +    "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. First observedv1.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint annotation: it discloses the exponential backoff schedule (2s, 1.5x, 30s max) with jitter, explains that cancelled and revoked are final states so polling stops, and warns that a timeout returns status 'pending' with the same identifier to retry. It also documents the auth prerequisite (PROOF_API_KEY) explicitly.

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 the core behavior and terminal states, then adds backoff, edge-case semantics, a caller responsibility, and the auth note. The three-paragraph structure is scannable, though the ACCESS paragraph reads as boilerplate that could be tighter.

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 values need no explanation. For a long-polling tool the description covers what an agent most needs: timing, retry-on-timeout, terminal states, auth setup, and the prerequisite that user-visible text must already exist before waiting.

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%, and the schema already explains both id and timeout_seconds including the 50s default, 300s cap, and the client-timeout warning. The description adds only the surrounding polling behavior, not new meaning for the parameters themselves, so the baseline of 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 ('poll a verification') and enumerates the terminal states it waits for (verified, failed, expired, revoked, cancelled), so an agent knows exactly what the tool does and when it returns. It also distinguishes itself from related flows by noting start_login does not open this tool.

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?

Gives a clear precondition — only call this for a challenge you created, and only after your reply text already shows the user the link/SMS/inbox note. It lacks an explicit contrast with one-shot siblings like get_verification or get_multi_channel_verification_status, so the 'check status once vs. block' decision is left implicit.

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