Skip to main content
Glama

Create and Wait for Task Result

solvewall_solve_task

Submits a task and waits for completion using realtime streaming with automatic polling fallback, then returns the solution, cost, and elapsed time.

Instructions

High-level consumer helper: submits a task and waits for completion via realtime SSE (/stream/:taskId) with automatic polling fallback, returning the solution, cost, and elapsed milliseconds.

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": "<task>"
    },
    "name": "solvewall_solve_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYesTask payload object containing `type` and required parameters
apiKeyNoOptional override API key
exactModeNoRequire two independent solvers to agree (1.9x rate)
timeoutMsNoMaximum wait time in ms (default 120000)
idempotencyKeyNoOptional deduplication key

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Goes meaningfully beyond the annotations by disclosing the transport mechanism (realtime SSE on /stream/:taskId with automatic polling fallback) and the return payload (solution, cost, elapsed ms). It omits what happens on timeout expiry (throw vs. partial return) and that submitting consumes balance, which matters for a mutating, open-world call.

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?

A single dense sentence with the primary behavior front-loaded and zero filler. Every clause (SSE, polling fallback, return shape) carries information an agent would otherwise have to discover.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covering return values is valuable given no output schema exists, but gaps remain for a tool with a nested untyped `task` payload and 5 parameters: the description never explains the task object, timeoutMs behavior, or idempotencyKey. Adequate but not complete for this complexity.

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 description coverage is 100%, so every parameter is already documented, and the description adds no parameter-level detail. The return-value wording ('solution, cost, elapsed milliseconds') describes output, not inputs, so baseline 3 applies.

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 composite behavior: it 'submits a task and waits for completion,' which implicitly distinguishes it from the lower-level create/poll siblings. It never names those siblings explicitly, so an agent must infer the contrast rather than being routed.

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

Usage Guidelines3/5

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

'High-level consumer helper' hints that this is the convenience path when you want a result in hand, but there is no explicit statement of when to prefer it over create_task plus get_task_result, or when blocking is inappropriate. Usage is implied rather than directed.

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