Skip to main content
Glama

cs_agent_wait_many

Read-onlyIdempotent

Wait for multiple agent turns, returning ready results by turn ID. 'any' mode returns immediately; 'all' mode waits for all terminal turns, with timeout and resumable pending turns.

Instructions

Wait for multiple turns after you send all independent turns first. Mode any returns all currently ready items; mode all waits until every turn is terminal but returns early for permissions or timeout. Accumulate ready items by turnId and continue with pendingTurnIds after an interrupted all wait.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoany returns when at least one turn is ready; all waits for all terminal turns.any
waitMsNoWait for at most this many milliseconds, up to 30000; timeout does not cancel turns.
turnIdsYesTurn ids returned by cs_agent_send, from 1 to 64 entries.
Behavior5/5

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

Beyond the read-only and idempotent annotations, the description reveals meaningful behaviors: mode 'any' returns all currently ready items, mode 'all' returns early on permissions or timeout, and interrupted all-waits require manual accumulation via pendingTurnIds. These details are not present in the schema and materially shape correct usage.

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 sentences, front-loaded with the primary action, then mode details, then recovery guidance. No redundant words; every clause contributes to either understanding or usage. The structure flows logically from what to do, to mode behavior, to post-interruption handling.

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 polling utility with 3 parameters and no output schema, the description covers the essential workflow: issuing turns first, choosing modes, handling partial results, and resuming. It does not specify the exact return value format, but the description of 'ready items by turnId' gives adequate shape. Overall, sufficient for an AI agent to invoke correctly.

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 description coverage is 100%, so baseline is 3. The description adds semantic nuance to the 'mode' parameter by clarifying that 'any' returns all ready items, not just one, and introduces the concept of pendingTurnIds for handling interruptions—valuable context beyond the schema's terse 'returns when at least one turn is ready.'

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 opens with a specific verb+resource: 'Wait for multiple turns,' distinguishing from sibling cs_agent_wait_turn. It immediately establishes the tool's role ('after you send all independent turns first') and elaborates mode semantics, leaving no ambiguity about its purpose.

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?

Provides explicit usage instructions: send independent turns first, then choose mode based on whether you want current ready items or to wait for all terminal. It also advises how to recover from interrupted 'all' waits by accumulating ready items and continuing with pendingTurnIds. Fails to explicitly name alternatives like cs_agent_wait_turn, but the context makes the distinction clear.

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/codestable/cs-agent-mcp'

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