Skip to main content
Glama

recover_workflow

Recover a failed settled workflow run or a root whose scheduler is confirmed dead by supplying a reason and preserving completed work. Use it to resume interrupted execution safely.

Instructions

Explicitly recover a failed settled run or a root with a confirmed-dead scheduler.

Supply a reason and retain completed work. Interrupted scheduler recovery preserves existing attempts and decision budgets; uncertain execution ownership blocks recovery. Accepted recovery sets the run's resumed_at. Pass the originally displayed attention_checkpoint_id to bind failed-run or scheduler recovery to its current persisted identity. Stale requests refuse without applying the reason or grants.

Preserve spaces and word boundaries in reason rather than compressing natural prose; the caller's source text is retained unchanged before workflow input assembly.

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": {
      "workflow_run_id": "<workflow_run_id>",
      "reason": "<reason>"
    },
    "name": "recover_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYes
workflow_run_idYes
additional_attemptsNo
attention_checkpoint_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.14

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: what is preserved (completed work, existing attempts, decision budgets), what blocks the call (uncertain ownership), what state changes on success (resumed_at), and that stale requests refuse without applying the reason or grants. Missing only things like permission requirements and whether the call is idempotent.

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?

The core purpose is front-loaded in sentence one, and subsequent sentences each add a distinct operational fact (preconditions, state effects, param binding, refusal semantics). It is dense and slightly overlong in the final sentence about prose preservation, but nothing is truly redundant.

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

Completeness5/5

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

For a recovery mutation with zero annotation coverage and 0% schema descriptions, the description supplies preconditions, blocking conditions, side effects, and the critical checkpoint-binding rule; an output schema exists, so return values need no explanation. The only omission is additional_attempts semantics, which is minor against everything else covered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate, and it does for two of four params: reason (prose preserved verbatim, word boundaries retained) and attention_checkpoint_id (must be the originally displayed id to bind to current persisted identity) — a non-obvious constraint found nowhere in the schema. additional_attempts and, to a lesser degree, workflow_run_id receive no explanation.

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 first sentence names a specific verb ('recover') and precise resource ('a failed settled run or a root with a confirmed-dead scheduler'), with 'Explicitly' implicitly contrasting against automatic recovery. It is clearly distinguishable from lifecycle siblings like resume_workflow, though it never names an alternative, so it stops short of a 5.

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 applicability conditions ('failed settled run', 'root with a confirmed-dead scheduler') plus negative cases ('uncertain execution ownership blocks recovery', 'Stale requests refuse'). What's absent is routing guidance naming resume_workflow or other recovery-adjacent siblings as the alternative when these preconditions don't hold.

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