Skip to main content
Glama

Run a task with AI

run_task
DestructiveIdempotent

Run a supported employee task. Costs 1 shared credit. Uses the existing task reservation and version; result goes to review, never to external recipients. Returns awaiting_confirmation and an approval_url: the owner must approve these exact parameters in Cormak, then retry with the SAME request_id. No work starts before approval. Reuse request_id on retries.

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

Input Schema

NameRequiredDescriptionDefault
localeNo
task_idYes
versionYes
request_idYesStable UUID for this exact operation. Reuse on retries. Never change it to retry an unknown result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the annotations the description discloses cost ('Costs 1 shared credit'), the containment guarantee ('result goes to review, never to external recipients'), the response shape ('awaiting_confirmation and an approval_url'), and the hard gate that no work starts before owner approval. This is exactly the kind of context annotations cannot convey, and it is consistent with readOnlyHint=false, destructiveHint=true and idempotentHint=true.

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?

Information is front-loaded and dense: cost, side-effect boundary, return contract, approval gate, and retry rule each appear once with no filler. The flow is slightly run-on and 'Cormak' is introduced without explanation, which costs a point but not usability.

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 destructive, approval-gated mutation with no output schema, the description supplies the outcome status, the approval URL, the credit cost and the idempotency contract, which is most of what an agent needs. Gaps remain around the meaning of the required version and locale parameters and how this differs from run_employee_task.

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 25%, with only request_id documented in the schema, and the description reinforces that by mandating reuse on retries. However, task_id and version are only alluded to via 'existing task reservation and version', and locale is never mentioned at all, so the description does not compensate for the low coverage.

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 and resource ('Run a supported employee task') and pins the scope with 'uses the existing task reservation and version'. It does not, however, distinguish this tool from the near-identically named sibling run_employee_task, nor explain what makes a task 'supported', so the agent cannot fully disambiguate on the description alone.

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 guidance is procedural rather than comparative: it explains the approval-then-retry loop and that the SAME request_id must be reused, which is genuinely actionable. It never states when to choose this tool over run_employee_task or approve_employee_task, so selection among siblings is left to inference.

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.