Skip to main content
Glama

Wait for Capy agents to finish

capy_wait
Read-onlyIdempotent

Wait for one or more Capy threads to finish and retrieve their results. Returns early if a thread is blocked on human input, or reports progress after a timeout.

Instructions

Block until one or more Capy threads finish, then report what happened. This is what turns a fleet of background agents into something you can use inside a single conversation: delegate several pieces of work, then wait for all of them here.

The Capy API has no streaming or push notifications, so this polls with backoff. It returns early, without an error, if a thread becomes blocked on a human (an auth or permission gate), so you never sit waiting on something that cannot progress.

If the timeout is reached the result says so and the threads keep running on Capy's side: just call this tool again with the same ids to keep waiting.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
wait_forNoReturn when "all" threads finish, or as soon as "any" one of them does. Defaults to "all".
thread_idsYesOne or more thread ids to wait on.
timeout_secondsNoHow long to wait before giving up and reporting progress so far. Defaults to 240. Keep this below your MCP client's own tool timeout.
Behavior5/5

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

Annotations include readOnlyHint, openWorldHint, idempotentHint. The description adds significant behavioral details: polling with backoff due to no streaming, early return on human blocking without error, and timeout behavior that allows retries. No contradiction with annotations.

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, well-structured in three paragraphs, each sentence adding value. No redundant or vague statements. Front-loaded with the core purpose.

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?

The description covers all necessary aspects: blocking behavior, polling mechanism, edge cases (human block, timeout), retry advice. Despite no output schema, the description's claim to 'report what happened' is sufficient for the tool's simplicity.

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?

All three parameters have schema descriptions (100% coverage). The description reinforces purpose but does not add new meaning beyond what the schema provides. Baseline 3 is appropriate.

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 that the tool blocks until Capy threads finish and reports results. It specifies the action (block/wait), resource (Capy threads), and distinguishes it from siblings like capy_delegate (which starts agents) and capy_status (non-blocking check).

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 explains when to use: after delegating work via capy_delegate, and that it transforms background agents into a synchronous flow. It notes early return on human block and timeout retry, but does not explicitly compare to alternatives like capy_status for non-blocking checks.

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/Takumixbt/capy-fleet'

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