Skip to main content
Glama

run_task

Starts a named Owner task preset and opens the normal Owner approval window for each run; unknown preset names are denied and start nothing.

Instructions

Start one Owner task preset by name; the normal Owner approval window opens for every run. An unknown name returns DENY UnknownTask and starts nothing.

Follow Owner review outcomes in server instructions. TIMED_OUT has launch_outcome=NOT_STARTED. On PENDING follow the same pending_id via review_status/await_command_result: PENDING is observer wait only. Interactive SECOND_GUI Reject retains ERROR/OwnerAuthorizationRequired with launch_outcome=NOT_STARTED; report and wait.

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

Input Schema

NameRequiredDescriptionDefault
nameYesExact preset name from list_tasks (lowercase letters, digits and hyphens). It selects the Owner's fixed command; no argument can be added or changed. TIMED_OUT (EXPIRED/CLOSED) is terminal: REPORT_AND_WAIT; never resubmit or ask for the window again. See tool help for outcome handling.
request_idNoOptional original request correlation ID (32 lowercase hex characters); NOT Owner permission.
wait_secondsNoBounded observer wait in seconds, 0 to 90; default 50. PENDING means observation is incomplete; continue the SAME pending_id with the existing status/wait tool.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.7
    • changedInput schema / properties / name / description
      Previous value: -"Exact preset name from list_tasks (lowercase letters, digits and hyphens). It selects the Owner's fixed command; no argument can be added or changed."New value: +"Exact preset name from list_tasks (lowercase letters, digits and hyphens). It selects the Owner's fixed command; no argument can be added or changed. TIMED_OUT (EXPIRED/CLOSED) is terminal: REPORT_AND_WAIT; never resubmit or ask for the window again. See tool help for outcome handling."
    • changedInput schema / properties / wait_seconds / description
      Previous value: -"Seconds to await Owner click and original job, 0 to 90; default 50. On timeout use await_command_result, not run_task again."New value: +"Bounded observer wait in seconds, 0 to 90; default 50. PENDING means observation is incomplete; continue the SAME pending_id with the existing status/wait tool."
  2. Addedv0.1.5

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does substantial work: every run opens an Owner approval window, an unknown name returns DENY and starts nothing, and launch_outcome=NOT_STARTED marks terminal or rejected runs. The weak point is that it defers key outcome handling to "server instructions" and leaves jargon (SECOND_GUI, REPORT_AND_WAIT) undefined in-place.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and the unknown-name rule are usefully front-loaded, but the second half is a semicolon-chained block of internal state codes ("ERROR/OwnerAuthorizationRequired with launch_outcome=NOT_STARTED") that is hard to parse and partly duplicates the TIMED_OUT/terminal note already in the name parameter 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?

An output schema exists, so return values need no explanation here; what matters is failure modes and follow-up, and the description covers DENY, TIMED_OUT terminality, PENDING continuation, and interactive rejection. It is close to complete for a complex, approval-gated execution tool, with the server-instructions deferral as the main residual gap.

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 the schema already documents name format, request_id as a correlation ID and not a permission, and wait_seconds bounds. The description reinforces that the preset name fixes the command and adds PENDING-is-observer-wait-only semantics, but adds little about the parameters the schema itself does not already say. 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?

The description states a specific verb and resource ("Start one Owner task preset by name") and immediately anchors it to an approval gate, so the agent knows this triggers a controlled execution rather than a free-form command. It stops short of naming a sibling (e.g. run_command) to contrast against, so the boundary between this and an arbitrary-command tool must be inferred.

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 routing: on PENDING follow the same pending_id via review_status/await_command_result, and it explicitly forbids resubmitting after TIMED_OUT. That is real when/when-not guidance with named alternatives, though it never states when an agent should prefer run_command or run_command_wait instead of a preset.

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