Skip to main content
Glama

wait_for_action

Read-only

Waits for a game state revision newer than afterRevision or a timeout, then returns the latest state, covering card insertion and recalculation responses; waiting can resume after timeout.

Instructions

等待 revision 更新或超时,返回最新状态。不是只等待自己的回合:插牌和反算也需要响应。超时后可继续等待。

Input Schema

NameRequiredDescriptionDefault
timeoutMsNo
afterRevisionYes最新状态的 revision;过期操作会被拒绝

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds useful operational context: it blocks until a revision change or timeout, returns the latest state, and waiting can continue after a timeout.

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?

Three compact sentences with the core wait-and-return behavior front-loaded. There is little waste, though the insert-card/anti-calculation clause is slightly context-dependent.

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 wait tool with no output schema, the description covers the trigger, returned value, and post-timeout behavior. It is less complete on timeoutMs semantics, but the schema supplies default and maximum values.

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

Parameters2/5

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

Schema coverage is only 50%: afterRevision is documented in the schema, but timeoutMs has no schema description. The tool description references revision indirectly but gives no semantics for timeoutMs, such as its default or maximum, so it does not compensate for the gap.

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 (wait) and trigger (revision update or timeout), plus the return value (latest state). The clause about insert-card and anti-calculation responses clarifies it is not only for the player's own turn, though it does not name sibling tools directly.

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?

Explains that the tool waits for a revision update or timeout and that it is relevant beyond one's own turn, including when other actions need responses. However, it does not name alternatives such as get_state or clearly specify 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.