Skip to main content
Glama

get api task

get_api_task
Read-only

Check a long-running task: a task_id from call_api or a route_id from run_agent_task. Returns its state, which agents were tried, and the output once it is done. Pass cancel to stop it (credits come back) or reply to answer an agent that asked for input. Needs a StartupHub.ai API key with credit (pay as you go).

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": "get_api_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
replyNoYour answer when the task needs input
cancelNo
task_idNoThe task_id call_api returned
route_idNoOr the route_id run_agent_task returned

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / route_id
      Added value: +{
      +  "description": "Or the route_id run_agent_task returned",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "task_id"
      -]
  2. Added

TDQS

A3.8/5.0
Behavior1/5

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

The annotations declare readOnlyHint=true and destructiveHint=false, but the description tells the agent to pass cancel to stop the task and get credits back, and to pass reply to answer an agent. Both are state-changing operations that contradict a read-only, non-destructive profile. The definition does add useful context such as returning state, agents tried, and output, but the contradiction is severe enough to score 1.

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?

The description is short, front-loaded, and every sentence carries information: identifiers, return values, cancel/reply behavior, and the API key requirement. There is no redundant restatement of the tool name or schema.

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 usefully explains that the response includes state, tried agents, and eventual output. It also covers the auth and credit prerequisite. The major missing piece is that it does not reconcile the cancel/reply state changes with the read-only annotation, leaving an agent with conflicting behavioral expectations.

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?

The schema already documents most parameters, but the description adds provenance: task_id is the one returned by call_api, and route_id is the one returned by run_agent_task. It also explains that reply is used when the task needs input and that cancel stops the task with credit refund. That is meaningful semantic value beyond the schema.

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?

The description states a specific verb and resource: check a long-running task. It disambiguates the two identifiers by naming the sibling tools that produce them (call_api and run_agent_task). An agent can tell exactly what this tool is for without inspecting 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 Guidelines4/5

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

It clearly ties usage to long-running tasks and explains that task_id comes from call_api while route_id comes from run_agent_task. It also describes two special actions, cancel and reply, and when to use them. It stops short of explicit when-not-to-use guidance or naming a polling alternative, which keeps it below a 5.

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