Skip to main content
Glama

Retry failed Flow jobs

flow_retry

Re-queue failed jobs with their original settings and file names, and regenerate only failed scenes or images instead of rerunning whole batches.

Instructions

Put failed jobs back in the queue with the same settings and file names (default: all failed jobs). Scenes already retry once on their own when Flow reports a failure. An image batch that finished with some images still failed (its job lists failed_scenes) is not run again whole: only those images are made again, saved under their own scene numbers.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "flow_retry"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idsNoJobs to re-queue. Default: every failed job.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already declare the operation is non-read-only, non-idempotent, and non-destructive. The description adds genuinely new behavior beyond those annotations: the retry preserves the same settings and file names, the default target is all failed jobs, and partially failed image batches retry only the failed_scenes under their own scene numbers. It leaves out the return payload and any cost or credit implications.

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 action and default are front-loaded in the first sentence, followed by two focused sentences on automatic retry and partial-batch semantics. It is dense but each sentence carries useful information, with only minor redundancy on the default.

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 one-parameter tool with no output schema and annotations covering safety, this is nearly complete: default scope, auto-retry behavior, and partial-batch handling are all covered. The only meaningful gap is what the tool returns after re-queueing.

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 100%, and the schema already documents the default for job_ids. The description's '(default: all failed jobs)' largely restates that. The note about partial image batches clarifies what a retry does to failed_scenes, but it does not add syntax or format detail for the single parameter.

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 opens with a concrete action and resource: 'Put failed jobs back in the queue.' This makes the retry operation unmistakable. The siblings are not named, so the contrast with flow_generate or flow_cancel is only implied, but the verb-plus-resource combination still stands on its own.

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?

The description establishes when to use the tool: when jobs have failed, and by default when all failed jobs should be retried. It also adds a useful caveat, that scenes already retry once on their own, which helps the agent avoid redundant retries. It does not name a specific alternative tool or an explicit 'do not use when' condition.

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