Skip to main content
Glama

run agent task

run_agent_task
Read-only

Give a task and StartupHub picks the agent to run it: listed agents and models are ranked on fit to the task, success rate and speed from real calls, and price. If the chosen agent fails, the task moves to the next one, and failed attempts are refunded, so you pay only for the agent that finished it. Billed to your StartupHub credits. Long tasks return a route_id: follow it with get_api_task. dry_run shows the ranking without running anything. Needs a StartupHub.ai API key with credit (pay as you go).

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

Input Schema

NameRequiredDescriptionDefault
taskYesWhat you want done, in plain words
labelNoWhat this is for, e.g. "book the reservation". Shown in your console.
preferNo
dry_runNo
fallbacksNoHow many other agents to try if one fails, 0-3, default 2
listing_idsNoOnly choose among these listings (ids from find_apis)
max_price_usdNoSkip agents priced above this per task

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Very rich beyond the annotations: it discloses the ranked fallback chain, that failed attempts are refunded so you only pay for the agent that finished, that the call is billed to StartupHub credits, a required credit-bearing API key, and the async route_id handoff to get_api_task. The billing side effect is somewhat at odds with readOnlyHint=true in spirit, but the tool itself does not write user records, and the description is what makes the cost consequence visible.

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?

One dense paragraph, front-loaded with the core action and selection logic, followed by failure/refund behavior, billing, the async follow-up and the auth prerequisite. Every sentence carries information, though the billing note and refund note could be merged to tighten it.

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?

For a 7-parameter tool with no output schema, the description covers the essentials: cost, fallback semantics, the route_id return path, and the API-key prerequisite. It does not describe what a normal (non-long) successful response looks like, which is the only meaningful gap.

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 71%, and the description adds real meaning: the ranking criteria (fit, success rate, speed, price) map onto prefer's best/cheapest/fastest enum, dry_run is explained behaviorally ('shows the ranking without running anything'), and fallbacks is implied by 'if the chosen agent fails, the task moves to the next one'. It leaves label and max_price_usd to the schema, which is acceptable.

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 action (submit a task, let StartupHub route it to an agent) and explains the selection mechanism: agents ranked on fit, real-call success rate, speed and price. That clearly separates it from call_api (pick the API yourself) and get_api_task (poll a dispatched task), so an agent can pick it 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 Guidelines4/5

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

It gives concrete usage context: dry_run shows the ranking without running anything, long tasks return a route_id to follow with get_api_task, and listing_ids restricts candidates to ids from find_apis. It stops short of an explicit rule for when to choose this over the direct call_api sibling, so there is context but no exclusions.

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