Skip to main content
Glama

Poll pairing completion

poll_pairing
Read-onlyIdempotent

Poll for pairing completion (Device-Grant style). Waits up to ~20s for phone approval before returning. Statuses: pending / completed / expired / not_found. On completed, store sessionToken, refreshToken, and grantId — refreshToken renews access for up to 7 days without re-pairing. When sessionToken expires (~1h), call refresh_session. The server also binds tokens to this connector session. Pass tenantId when known. Device claim ≠ forever billing upgrade.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesPairing code from get_pairing_code / whoami.
tenantIdNoOptional tenant id — improves lookup after the phone has approved.
workspaceIdNoOptional workspace id — for B2B pairing flows.

TDQS

A4.2/5.0
Behavior5/5

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

Beyond annotations, the description reveals the ~20s timeout, the four possible statuses, how to handle successful completion (store sessionToken, refreshToken, grantId), the 7-day refresh window, the 1-hour session expiry, and the server-side token binding. The warning that a device claim is not a billing upgrade adds extra caution. This is exemplary behavioral disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Every sentence earns its place: core polling behavior, timeout, statuses, token handling, expiry, follow-up action, and a clarifying warning. The description is front-loaded with the primary purpose and contains no 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?

There is no output schema, but the description provides all critical runtime information: statuses, token field names, expiry durations, the follow-up tool (refresh_session), and parameter nuances. An agent has enough to call the tool correctly and handle its result appropriately.

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%, giving a baseline of 3. The description adds meaning by identifying the source of the code parameter (get_pairing_code / whoami) and explaining that tenantId improves lookup after phone approval. This extra context goes beyond the schema and justifies a 4.

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 states a specific verb ('Poll'), a clear resource ('pairing completion'), and names the Device-Grant style, making the core purpose obvious. However, it does not explicitly differentiate itself from the sibling tools poll_approval and poll_decision, which also sound like polling workflows, so it falls just short of a 5.

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

Usage Guidelines3/5

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

The description implies the main use case: after obtaining a code via get_pairing_code, poll until the phone approves, with a ~20s wait. It also gives explicit follow-up guidance to call refresh_session when sessionToken expires. However, it does not explain when to prefer poll_pairing over poll_approval or poll_decision, so alternative-routing guidance is missing.

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.

TDQS

A3.8/5.0
Disambiguation3/5

Core actions like hatch, convert, upload, and lookup are generally distinct, but the polling family (poll_approval, poll_decision, poll_pairing) is easy to confuse, and await_decision misleadingly sounds like a wait operation rather than the creation of a review. Descriptions clarify boundaries, but the names alone leave room for misselection.

Naming Consistency3/5

Most tools use an imperative verb style, but the pattern is inconsistent: some are bare verbs (hatch, convert, deploy, list, lookup, share, upload), some are verb_noun (poll_decision, refresh_session, get_pairing_code), and auth is a bare noun. The names are readable but do not follow one predictable convention.

Tool Count3/5

16 tools sits at the heavy end of the comfortable range, inflated by three polling tools plus pairing/session management that are only tangentially related to the core task of creating and updating roosts. Each tool has a purpose, but the surface feels larger than the core domain requires.

Completeness3/5

The set covers create, read/list, update via convert/upload/deploy, sharing, and auth, but there is no delete/destroy or teardown tool, and custom domain/state management is only passively visible through lookup. Agents can complete common workflows but will hit dead ends on teardown or lifecycle management.