Skip to main content
Glama

Forkit

wait_for_task

Read-only

Block until a ready task is available for the given assignee. Wakes within ~250ms when a task becomes claimable. Use instead of polling ready_tasks.

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": {
      "assignee": "<assignee>"
    },
    "name": "wait_for_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
assigneeYesAgent identifier to wait for work on
timeout_msNoMax wait in milliseconds (default 30000)

Output Schema

NameRequiredDescriptionDefault
tasksYesReady tasks for the assignee; empty if timed out
timed_outNoTrue when no task arrived within timeout_ms
waited_msYesMilliseconds elapsed before returning

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description adds genuinely new context: the call blocks, it wakes within ~250ms of a task becoming claimable, and it substitutes for polling. The notable gap is what happens when timeout_ms expires with no task.

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, front-loaded with the blocking behavior, then the latency guarantee, then the alternative. No filler or repetition.

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?

With an output schema present and full annotation coverage, the description carries what it needs to: blocking semantics, wake latency, and the polling alternative. Only the timeout/empty-result outcome is left unstated.

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 coverage is 100% with both parameters documented, so the baseline applies. The description mentions the assignee scope but adds no format or unit detail beyond what the schema already supplies for assignee and timeout_ms.

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?

States a specific verb and resource ('Block until a ready task is available') and scopes it to the given assignee. An agent can immediately distinguish this blocking wait from a list or claim operation.

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?

Explicitly routes the agent away from polling by naming 'ready_tasks' as the alternative it replaces. It does not distinguish from the other wait_* siblings (wait_for_message, wait_for_reply), so the guidance is strong but not complete.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources