Skip to main content
Glama

run_task

Starts the automatic inner loop for a Gemini task with command checks and retries, waits up to wait_seconds, then returns a compact report or running status for later polling.

Instructions

Start the automatic inner loop (Gemini works → command checks → retry) and wait up to wait_seconds. Returns the compact report, or 'running' (then call wait_task).

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

Input Schema

NameRequiredDescriptionDefault
task_idYes
wait_secondsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose important behavior: this is a blocking call bounded by wait_seconds that returns either a report or a 'running' status. It does not disclose side effects of the loop (Gemini presumably edits files and runs commands), idempotency, or what happens if the wait expires mid-loop — significant gaps for a tool that drives code execution.

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?

Two tight sentences, front-loaded with the action and followed by the return/follow-up behavior. No filler. Minor deduction for jargon ("compact report", "inner loop") that assumes project context.

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?

An output schema exists, so return values need not be explained, though the description helpfully distinguishes the two result shapes. For a blocking, side-effecting loop runner it still omits timeout behavior, whether re-invocation is safe, and what task_id must reference — enough missing to keep it at minimum-viable.

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 0%, so the description must compensate. It does explain wait_seconds as a bounded blocking duration, which is real added meaning, but it never explains task_id (presumably from create_task/list_tasks) or what happens when the default of 540 seconds is hit. Half the parameters remain opaque.

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 ("Start") and names the resource concretely ("the automatic inner loop"), even sketching its stages (Gemini works → command checks → retry). It also implicitly separates itself from wait_task by saying to call that tool when the result is 'running'. The term "inner loop" is somewhat project-jargon, but an agent can still tell what action it is taking.

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?

There is one clear piece of routing guidance: if the call returns 'running', use wait_task instead. However, nothing explains when to choose run_task over siblings like create_task or submit_review, nor whether it can be invoked on an already-running task. Usage is implied rather than fully specified.

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