Skip to main content
Glama
ProofHoldings

@proof-holdings/mcp-server

Official

wait_for_chat_id_discovery

Read-only

Polls a chat ID discovery token until the user interacts with a Telegram bot; returns completed or expired. Call after create_chat_id_discovery to obtain a verified chat ID for Telegram HITL.

Instructions

Poll a chat ID discovery token until the user interacts with the Telegram bot. Uses exponential backoff (2s initial, 1.5x, 30s max) with jitter.

Agent usage: Call this after create_chat_id_discovery. Present the discovery response's deep_link with render_auth_link first, then poll with the returned token. Terminal states: "completed" (chat_id discovered — use it when creating a HITL config with a Telegram channel), "expired". While "pending", the user has not yet opened the Telegram link.

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.

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenYesDiscovery token from create_chat_id_discovery
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.4/5.0
Behavior5/5

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

With readOnlyHint=true already covering safety, the description adds genuinely new behavior: exponential backoff parameters (2s initial, 1.5x, 30s max, jitter), the client-timeout interaction and re-call-on-pending semantics, the requirement for a Proof account with PROOF_API_KEY, and the warning that tool results are folded away by most clients.

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 the core operation and backoff characteristics, then layered with usage and access notes. Every paragraph carries actionable content, though the paragraph about tool results being hidden is about agent reply composition rather than this tool specifically and slightly dilutes focus.

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?

No output schema exists, yet the description enumerates the terminal status values, the pending/timeout case, the credentials prerequisite, and the surrounding call sequence. An agent has everything needed to invoke this correctly and interpret the result.

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 both token and timeout_seconds are already fully documented, establishing a baseline of 3. The description's polling advice restates the timeout behavior rather than adding format or value semantics beyond what the schema already says.

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?

States a specific verb (poll/wait) and resource (chat ID discovery token) plus the terminating condition (user interacts with the Telegram bot). It clearly separates itself from create_chat_id_discovery, but does not explain how it differs from the near-identically named sibling poll_chat_id_discovery, which an agent could easily confuse it with.

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 ordered workflow: call after create_chat_id_discovery, present deep_link with render_auth_link, then poll with the returned token. It also enumerates terminal states (completed/expired) and the meaning of pending, so the agent knows what to do in every outcome.

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