Skip to main content
Glama

retry_workflow_item

Retry one failed generation item from an approved Flow run. The retry uses the existing run budget and keeps completed items. Reuse the same idempotency key if the retry request is interrupted.

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": {
      "workspaceId": "<workspaceId>",
      "runId": "<runId>",
      "nodeId": "<nodeId>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "retry_workflow_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
runIdYes
nodeIdYes
workspaceIdYes
idempotencyKeyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/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 real work: it discloses the cost model ('uses the existing run budget'), the non-destructive state effect ('keeps completed items'), and idempotency behavior on interruption. It omits permission/auth requirements and what happens if the referenced item is not actually failed, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with purpose and followed by the two behavioral facts an agent most needs (budget reuse, preserved completions) and the retry-safety rule. No filler or restatement of the tool name.

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 mutation tool with no annotations and no output schema, the definition covers enough to call it correctly: precondition, cost, state effect, and idempotency. Remaining gaps are the return value and failure-mode behavior, which are minor since an interrupted-retry path is already addressed.

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 0%, so the description must compensate across four required params. It meaningfully explains the semantics of idempotencyKey (reuse on interruption) and implies nodeId identifies the single failed item, but workspaceId and runId are left to their names and regex patterns alone.

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 description states a specific verb and resource ('Retry one failed generation item') plus the precondition ('from an approved Flow run'), which cleanly separates it from whole-run tools like execute_workflow or run_video_workflow. The scope of 'one item' versus an entire run is unambiguous.

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 establishes the triggering condition clearly: the item must be failed and the run must be approved. It also gives operational guidance to reuse the same idempotency key if the request is interrupted. It stops short of naming an explicit alternative or stating when not to retry (e.g., non-failed items), so it is strong but not exhaustive.

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.