Skip to main content
Glama
GetABrain🧠 | Live Human-in-the-Loop MCP for AI Agents

GetABrain🧠 | Live Human-in-the-Loop MCP for AI Agents

wait_for_responses

Read-only

Waits for live human responses to a submitted query, blocking up to 50 seconds to return ready answers or pending status if more are needed.

Instructions

Poll for human responses to a query, blocking for up to max_wait_seconds (default 50, max 50) before returning. Use right after submit_query to wait for real answers in one call instead of manually re-checking with get_responses. DOES NOT GUARANTEE COMPLETION -- if min_responses have not arrived within the time budget it returns status "pending" rather than erroring. Call it ONCE after submit_query; if still pending, tell the user the question is sent and they can ask for results later, instead of looping. Returns status "ready" with the responses array once enough have arrived (or the query otherwise completed). Read-only / free -- cost was already charged by submit_query. Disambiguation: unlike get_responses (instant, one-shot, may return 0 responses), this actively waits, trading time for a higher chance of a complete result.

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": {
      "query_id": "<query_id>"
    },
    "name": "wait_for_responses"
  }
}

Input Schema

NameRequiredDescriptionDefault
query_idYesThe id returned by submit_query, identifying which query to wait on.
min_responsesNoHow many responses must arrive before returning status "ready" (default: the query's required_responses).
max_wait_secondsNoMaximum seconds to poll before giving up and returning status "pending" if not enough responses arrived yet (default 50, max 50).

Output Schema

NameRequiredDescriptionDefault
hintNo
noticeNo
statusNo
responsesNo
simulatedNo
required_responsesNo
completed_responsesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.4
    • addedOutput schema / properties / notice
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / simulated
      Added value: +{
      +  "type": "boolean"
      +}
  2. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint/openWorldHint) by disclosing that it does not guarantee completion, returns status 'pending' instead of erroring, and that cost was already charged by submit_query so this call is free. These are non-obvious behavioral facts an agent needs before deciding to retry or loop.

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 blocking behavior, then usage, then a disambiguation clause; each sentence carries information. Slightly over-emphasized with capped warnings ('DOES NOT GUARANTEE COMPLETION', 'Call it ONCE') and the disambiguation sentence restates part of the usage guidance, costing some tightness.

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?

Even with an output schema present, the description explains the two return states ('ready' with responses array, 'pending') and the recommended agent behavior on each. Combined with the sibling routing and cost note, nothing needed to call this correctly is missing.

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 coverage is 100%, so the baseline is 3, but the description adds interpretive meaning: waiting 'trades time for a higher chance of a complete result' and that min_responses defaults to the query's required_responses. The concrete defaults (50, max 50) duplicate the schema, keeping this short of a 5.

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: 'Poll for human responses to a query, blocking for up to max_wait_seconds'. The blocking/polling nature and the timeout behavior are named up front, so an agent can distinguish it from a plain read without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit lifecycle guidance: 'Use right after submit_query', 'Call it ONCE after submit_query', and a fallback instruction to tell the user rather than looping. It also names the alternative and the trade-off: 'unlike get_responses (instant, one-shot, may return 0 responses), this actively waits'.

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