Skip to main content
Glama

Poll Request

poll

Check the status of a previously sent request and retrieve accumulated messages. Supports long-polling with a timeout and selectable detail levels for flexible result retrieval.

Instructions

Check the status of a previously sent request. Returns accumulated messages and current status. Supports long-polling via the timeout parameter and flexible detail levels.

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": {
      "workspace": "<workspace>",
      "sessionId": "<sessionId>",
      "requestId": "<requestId>"
    },
    "name": "poll"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNoDetail level for the response (default: "full"). "status" returns only requestId and status. "message" returns status + assistant text messages only. "brief" returns status + assistant messages + tool call summaries (truncated args, no results). "full" returns everything.
timeoutNoLong-poll timeout in milliseconds. If provided, waits up to this duration for the request to complete before returning current state.
requestIdYesRequest ID returned by send
sessionIdYesSession ID
workspaceYesWorkspace ID or project directory path

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It discloses the read-like behavior, message accumulation, and long-poll semantics, but it does not say whether polling consumes or clears messages, what happens on timeout, whether it is safe to call repeatedly, or what an unknown requestId produces.

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?

Three short sentences, each earning its place: the purpose is front-loaded, followed by return contents and the two notable capabilities. No filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only polling tool with no output schema and fully documented parameters, the description covers purpose, return shape, long-polling, and detail granularity. Minor gaps remain around timeout outcomes and repeated-poll behavior, but nothing essential to invoking it correctly 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 description coverage is 100%, so the timeout, detail, and identifier parameters are already fully documented in the schema, including the four enum detail levels. The description only restates long-polling and detail levels, adding no meaning beyond the schema, so the 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 states a specific verb and resource: 'Check the status of a previously sent request' and returns 'accumulated messages and current status'. It clearly links back to the send flow and is distinguishable from siblings like send_and_wait, though it does not name an alternative explicitly.

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?

Usage context is implied: it is for a request already sent, and long-polling is offered via the timeout parameter. However, there is no explicit guidance on when to poll versus using send_and_wait, nor on how frequently to poll or what to do when a request is not yet complete.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.