Skip to main content
Glama

poll_access

Read-only

Collect the outcome of a request_access, proving possession of its deviceSecret. It HOLDS THE CALL OPEN and answers the moment the human decides — one call instead of a dozen, since each poll here costs a whole round trip through you. It waits 8 seconds by default; pass waitSeconds (up to 30) if your client tolerates a longer call. Pass urlMode=true when the client supports URL elicitation: while the request is pending this returns the standard -32042 URL-elicitation-required error, and retrying the same call after the browser decision returns the outcome. A wait that times out answers status=pending, and you simply call again. Then approved (with the token) or denied/expired. Use the token on every later call: as the X-Compose-Preview-Token header where you control headers, and otherwise as each gated tool's 'token' argument — which is what an MCP client reaching this flow mid-session needs, since its headers were fixed when it connected.

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": {
      "requestId": "<requestId>",
      "deviceSecret": "<deviceSecret>"
    },
    "name": "poll_access"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlModeNoUse the protocol-standard URL elicitation UI while this request is pending.
requestIdYes
waitSecondsNo
deviceSecretYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond readOnlyHint=true it discloses the blocking behavior, the 8-second default and 30-second ceiling, the timeout outcome (status=pending), the -32042 URL-elicitation error path in urlMode, and the terminal approved/denied/expired outcomes. Nothing here contradicts the read-only annotation; the tool observes rather than mutates.

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?

Purpose and the blocking behavior are front-loaded, and nearly every clause carries operational information. It is one dense run-on paragraph, though, and the 'one call instead of a dozen' rationale is the one stretch that could be trimmed without losing guidance.

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 long-poll tool with an output schema, the description still covers everything an agent needs: the secret, the wait budget, the URL-elicitation variant, the retry loop, and how to reuse the resulting token. No meaningful gap remains for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 25%, and the description compensates: it supplies the waitSeconds default and maximum that the schema omits, explains what urlMode actually does, and frames deviceSecret as proof of possession of the request's device. requestId is only implicitly covered via its link to request_access, but the practical meaning is clear.

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 ('Collect the outcome of a request_access') and ties itself to the sibling that creates the request, so an agent knows exactly where in the flow it sits. The long-poll nature ('HOLDS THE CALL OPEN') further distinguishes it from a plain status check.

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 explicit routing rules: use this instead of repeated polling, pass waitSeconds when the client tolerates a longer call, pass urlMode=true only when the client supports URL elicitation, and simply call again after status=pending. It also tells the agent how to spend the returned token on later calls, split by whether it controls headers.

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.