Skip to main content
Glama

workflow_job

Manage detached workflow jobs by waiting for completion, retrying failed steps, skipping, approving, or granting access when a job needs you.

Instructions

Follow and fix detached work. wait returns when the job finishes or needs you (state done, waiting with reason fix, approval, hands or user, failed); call it again when it returns still running. approve and grant only after the user agreed in this chat.

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

Input Schema

NameRequiredDescriptionDefault
idNoJob id.
allNoFor grant: every job waiting for the hands.
patchNoFor do: a script to run before the failed step is tried again. It sees args, scene and the helpers, not the script's variables.
valueNoFor skip: the value the skipped step returns.
actionYes
targetNoFor retry: the name to use now.
optionsNoFor retry: step options such as {"timeout": 15000}.
secondsNoFor grant: how long the job may use the mouse and keyboard.
timeout_msNoFor wait: how long to wait, default 50000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully discloses wait return states and the user-approval gate for approve/grant, but says nothing about the side effects, risks, or reversibility of stop, retry, do, skip, or report.

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?

Three dense sentences with no filler, front-loaded with the core purpose. The parenthetical state list is compact and readable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-action job-management tool with no annotations and no output schema, the description covers only a subset of actions and omits essential guidance for most mutations. It is not complete enough for safe invocation across the full action set.

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 coverage is 89%, so the baseline is 3. The description adds meaning for wait and the approve/grant prerequisite but leaves action semantics for list/show/stop/report/retry/do/skip to the enum names alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description frames the tool as following and fixing detached work and mentions wait/approve/grant, so an agent gets a partial sense of job management. But it never states the full action surface (list, show, stop, report, retry, do, skip) or clearly differentiates it from siblings like workflow_watch or workflow_run.

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?

It gives concrete conditions for re-calling wait and for approve/grant, including user agreement. It does not say when to choose this tool over workflow_watch/workflow_run or when to use the other actions.

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