Skip to main content
Glama

Short-poll a worker turn for CLI clients

agent_poll

Polls a worker to check if it has settled within a configurable timeout, returning a brief conclusion when done.

Instructions

CLI 友好的短轮询:最多等 30-120 秒查看 worker 是否 settled,避免一次 agent_wait_for_stop 长等 5400s 导致命令行无进度。默认 timeoutSec=60、intervalSec=5; 若 settled 且 readOnSettled 未设 false,会自动附带 brief 结论。agent_start 后推荐优先循环调用它。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tidYes
stepTailNosettled 后 brief 返回最近多少步,默认 5
timeoutSecNo默认 60 秒;CLI 建议 30-120
intervalSecNo默认 5 秒
contentCharsNosettled 后 brief content 上限,默认 2000
readOnSettledNo默认 true;settled 后自动带 agent_read_brief 结果
Behavior3/5

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

No annotations are provided, so the description carries full burden. It explains automatic behavior (settled + readOnSettled), default values, and the benefit of avoiding long waits. However, it lacks details on error states, side effects (if any), and safety of repeated calls.

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?

The description is concise, front-loaded with the English title, and the full text in Chinese is informative with no superfluous sentences. Every sentence adds value, making it efficient.

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

Completeness3/5

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

Without an output schema, the description partially covers return value (brief conclusion if settled) but does not specify exact format or structure. Given tool complexity (6 params, 1 required), it is mostly complete but lacks explicit return specification.

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 83% (high), baseline 3. The description adds context beyond schema: explains tid requirement, default timeoutSec=60 and intervalSec=5, and the effect of readOnSettled and stepTail/contentChars on response. This enhances understanding.

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?

The description clearly states it is a 'short-poll' for a worker turn, specifically for CLI clients, and distinguishes itself from the long wait of agent_wait_for_stop (5400s). The verb 'short-poll' and resource 'worker turn' are specific, and the purpose is unambiguous.

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?

The description explicitly recommends calling it in a loop after agent_start, contrasts with agent_wait_for_stop, and suggests timeout ranges (30-120s). It provides usage context for CLI clients but could be more explicit about when not to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/WhiteNightShadow/frx-director-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server