Skip to main content
Glama
solvehub-mcp

solvehub-mcp

wait_for_task

Poll an existing SolveHub task until it completes, fails, is cancelled, or times out, returning the task and a timedOut flag when the polling budget expires.

Instructions

Poll one existing task until it is done, failed or cancelled, or until timeout_seconds pass. Returns the task in either case, with timedOut true when the budget ran out.

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

Input Schema

NameRequiredDescriptionDefault
task_idYesTask id to poll.
timeout_secondsNoPolling budget in seconds. Default 120, maximum 600.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the call blocks/polls until a terminal state or the budget expires, that it returns the task in either case, and that timedOut is true on expiry. It omits error behavior for an unknown task_id and any polling-interval or rate-limit details.

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?

Two tight sentences with no filler, front-loaded with the polling scope and followed by the return contract. Every clause carries information an agent would otherwise have to guess.

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?

There is no output schema, and the description compensates by describing what comes back (the task plus a timedOut flag), which is exactly the missing piece. It remains slightly incomplete on failure modes such as an invalid or already-terminal task_id.

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%, so both parameters are already documented, establishing a baseline of 3. The description adds only a little extra meaning by tying timeout_seconds to the timedOut outcome; it gives no format or edge-case detail beyond the schema's stated default and maximum.

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?

The description uses a specific verb ("Poll") and resource ("one existing task") and names the three terminal conditions (done, failed, cancelled) plus the timeout bound. This distinguishes it in practice from a single-shot read like get_task, but no sibling is named explicitly, so it stops short of a 5.

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?

It clearly establishes the usage context: waiting on an already-existing task until it reaches a terminal state rather than checking once. It does not name an alternative (e.g. get_task or cancel_task) or state when not to use it, so there is no explicit routing guidance.

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