Skip to main content
Glama

Run a job

run_task
Destructive

Runs one of the app's scheduled jobs from its while.yaml now, without waiting for its time: the app's code, in its environment; while runs nothing else.

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_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoExtra variables for this run only.
argsNoArguments appended to the command, for example ["--since", "2026-10-12"].
taskYesName of the task (crons[].name).
waitNotrue: answers once done.
projectNoThe project.
catch_upNoPeriod to catch up: the run is counted "catch_up" and receives it as variables.
approval_idNoApproval granted, if the organization requires one for a task in production.
environmentNoProduction or a preview.production
timeout_secondsNoLongest wait, in seconds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / approval_id / description
      Previous value: -"Approval granted, when the organization requires an approval for tasks in production."New value: +"Approval granted, if the organization requires one for a task in production."
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and readOnlyHint=false, so the risk profile is covered structurally. The description adds real context by clarifying that the app's own code runs inside its environment and nothing else runs, but it omits operational behavior such as the production approval requirement implied by approval_id and what happens on timeout.

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?

A single front-loaded sentence that opens with the action and then qualifies scope; no filler. The colon-and-semicolon construction is dense and slightly awkward, but nothing is wasted.

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?

For a 9-parameter mutation tool with a nested object and no output schema, the description covers the core action but says nothing about return behavior, failure modes, or the production approval flow. With 100% schema coverage the gap is tolerable, but the definition is not self-sufficient for a destructive tool.

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%, including the nested catch_up period and args example, so the schema carries parameter meaning fully. The description's 'now, without waiting for its time' loosely relates to wait/timeout_seconds and catch_up semantics but adds no concrete detail beyond the schema.

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 gives a specific verb ('Runs') and resource ('one of the app's scheduled jobs from its while.yaml'), and adds a scope qualifier ('now, without waiting for its time') that distinguishes it from letting the scheduler fire normally. The trailing clause 'the app's code, in its environment; while runs nothing else' is terse and slightly cryptic but does bound what executes.

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?

Usage is implied rather than stated: an agent can infer this is for triggering a scheduled job immediately instead of at its scheduled time. There is no explicit when-not guidance, no mention of prerequisites such as approvals, and no named alternative (e.g. list_tasks to discover task names) even though the schema references crons[].name.

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