Skip to main content
Glama

Run it again

retry_run
Destructive

Start a run again with the same inputs (a workflow, as it is now) or the same message (an agent). It costs money like a new run: call it first without approved to get the cost, and only call again with approved: true after the person says yes. Check diagnose_run first: some failures need a fix before another run can work. For a workflow run, from_step runs only that step and the steps after it and keeps the results the earlier steps already produced, so they are not paid for again: use it when a late step failed or was fixed. Without approved it answers the plan (which steps run, which are kept, the cost and any warnings) to show the person.

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

Input Schema

NameRequiredDescriptionDefault
run_idYesThe run to repeat.
approvedNotrue only after the person has agreed to the new run and its cost.
from_stepNoWorkflow runs only. The step to retry from: its id from get_run's steps (for example step_4) or its name. The steps before it keep their results. A step inside a loop cannot be chosen; use the loop step.
only_failed_itemsNoOnly with from_step on a loop step. true (the default when some items finished) runs only the items that did not finish, so a loop that sends does not send twice. false runs every item again.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / from_step
      Added value: +{
      +  "description": "Workflow runs only. The step to retry from: its id from get_run's steps (for example step_4) or its name. The steps before it keep their results. A step inside a loop cannot be chosen; use the loop step.",
      +  "type": "string"
      +}
    • addedInput schema / properties / only_failed_items
      Added value: +{
      +  "description": "Only with from_step on a loop step. true (the default when some items finished) runs only the items that did not finish, so a loop that sends does not send twice. false runs every item again.",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the key hidden behaviors: this costs money like a new run, requires human approval, and from_step preserves earlier step results so they are not paid again. That is substantial context for a paid, non-idempotent mutation. It does not say what happens to the original run or whether a new run_id is returned, so it is not fully exhaustive.

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?

Purpose is front-loaded, then cost/approval, then the diagnose_run caveat, then the from_step detail. It is dense but each sentence carries information. There is mild redundancy: the final sentence re-explains what happens without approved, which was already implied earlier.

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 costly, approval-gated mutation with no output schema, the description covers everything an agent needs to act correctly: cost, human-approval sequencing, prerequisite diagnosis, partial-retry semantics, and the plan returned without approved. The remaining gap, the identity of the resulting run, is minor.

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 100%, so the baseline would be 3, but the description adds meaning the schema does not: approved is framed as a two-phase cost-confirmation gate, from_step is tied to a concrete cost saving, and only_failed_items is framed as preventing duplicate sends in a loop. That is real semantic value on top of the field descriptions.

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

Purpose5/5

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

The first sentence gives a specific verb and resource ('Start a run again') and splits the two subject types (workflow with same inputs as it is now, agent with same message). It is clearly distinguishable from siblings like run_workflow, run_agent, and diagnose_run, which it references by name.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the exact two-call protocol (first without approved to get the cost, then with approved: true after the person agrees), names diagnose_run as a prerequisite check for some failures, and says when to use from_step (late step failed or was fixed). Exclusions and alternatives are explicit.

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