Skip to main content
Glama

Wait for tasks

wait_for_tasks
Read-only

Work session (the person reviews the board and comments while you work): waits for new requests addressed to the agent and returns them as soon as they arrive, or after timeoutSeconds with nothing new. The requests it returns are this agent's: the person's other agents leave them. The first call (no cursor) returns the open requests at once; each result carries the cursor for the next call. The session ends after 25 minutes without a request, or when the person ends it from the board (End). People see on the board that the agent listens while it waits; fileId keeps the session to one file.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "wait_for_tasks"
  }
}

Input Schema

NameRequiredDescriptionDefault
cursorNoFrom the previous wait_for_tasks call.
fileIdNoLimit to one file: its id or its link (https://…/f/<id>).
timeoutSecondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well past the annotations (readOnly, non-destructive, closed-world) by disclosing session lifecycle: a 25-minute idle end, a person-initiated End from the board, and board visibility that the agent is listening. It also explains the first-call-immediate-return behavior, which is non-obvious for a tool named 'wait'.

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?

Front-loaded with the core concept and then layered with the mechanics an agent needs. Sentences are dense and occasionally pack several ideas (cursor, session end, board visibility) into one, but no sentence is filler.

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 no output schema, the description still conveys what comes back: the requests themselves, or nothing new after the timeout, plus a cursor in each result. For a long-polling session tool this is largely sufficient; the shape of an individual 'request' is left unspecified.

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?

At 67% schema coverage the description carries real weight: it explains the cursor's chaining role across calls and that fileId confines the session to a single file. It reflects timeoutSeconds only obliquely ('after timeoutSeconds with nothing new') and leaves its relationship to the 25-minute session limit ambiguous.

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 and resource: waits for new requests addressed to this agent, returning them on arrival or at timeout. The scoping clause ('The requests it returns are this agent's: the person's other agents leave them') cleanly separates it from a general task listing, though it never names list_tasks as the non-blocking alternative.

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?

Gives concrete call-sequencing guidance: the first call with no cursor returns open requests immediately, and each result carries the cursor for the next call. It also states the conditions under which the session terminates, which tells an agent how long it may keep waiting. It stops short of explicit when-not-to-use guidance or naming a sibling for one-shot listing.

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.