Skip to main content
Glama

Sigmora

Retry an automation run

recipes_runs_retry
DestructiveIdempotent

Start a failed or skipped run of a started recipe again, on its own item.

300 credits per one run of the recipe, as recipes.run quotes it (150 with the recipe clips footage (Clipping channel, Podcast clip series, Create social clips)).

RESULT CONTRACT: Returns runIds: the run records to read at GET /v1/recipes/{recipeInstanceId}/runs/{runId}. A clips run re-claims its video, episode or upload; a channel render renders a new slot; an X mention run answers the same post again. Each output is charged on delivery by the path that makes it and refunded if it fails; nothing is posted until a person approves it. A paused recipe, or one at its run cap, is refused. Quote first with X-Sigmora-Quote-Only; the same Idempotency-Key (or body requestId) returns the same answer.

ASYNC: answers with { jobId }, NOT the result. Read it with the jobs_get tool until status is done, cancelled, failed or qa_failed. status: "awaiting_review" means a person must approve the cut before anything renders — polling will never advance it, so tell the user rather than waiting.

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": {
      "projectId": "<projectId>",
      "recipeInstanceId": "<recipeInstanceId>",
      "runId": "<runId>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "recipes_runs_retry"
  }
}

Input Schema

NameRequiredDescriptionDefault
runIdYesThe `runId` this call acts on.
projectIdYesThe project to file this work under. Required — create one with the `projects_create` tool. A project this workspace does not own answers `not_found`; the work is never silently filed somewhere else.
requestIdNoA UUID naming this retry. The same requestId answers the same retry instead of starting another.
workspaceNoWorkspace slug. Omit to use the workspace your credential is bound to. An API key names its own workspace, and a value that disagrees with it is refused rather than ignored.
idempotencyKeyYesRequired for anything that spends or creates durable state. Generate a unique id per logical call. Retrying with the SAME id and the SAME arguments returns the stored result instead of doing — and charging for — the work twice; the same id with different arguments is refused with `conflict`.
recipeInstanceIdYesThe `recipeInstanceId` this call acts on.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations: per-run credit cost with a discounted clip-channel rate, charge-on-delivery with refund on failure, approval gating (nothing posts until a human approves), idempotency semantics including the conflict case, and the async jobId contract with awaiting_review explicitly identified as non-pollable. This is exactly the context an agent needs before spending money.

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?

Front-loaded purpose followed by labelled RESULT CONTRACT and ASYNC blocks, which makes it scannable under pressure. The credit sentence is parenthetically overloaded and could be split, but no sentence is filler.

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?

Covers cost, approval gating, refusal conditions, return identifiers, and the async polling contract that most retry tools omit. Even though an output schema exists, the async envelope ({jobId} rather than the result) is a behavioral fact the schema cannot convey, and it is stated plainly.

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 description coverage is 100%, so the baseline is 3. The description still adds value by tying the header Idempotency-Key to the body requestId parameter ('the same Idempotency-Key (or body requestId) returns the same answer'), which the schema documents separately rather than as a pair.

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 scope: start a failed or skipped run again, on its own item. That scopes it away from the general run-starting siblings (recipes_run) and from approval siblings (recipes_runs_approve/discard) without ambiguity.

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?

Explicit when-not conditions are given (a paused recipe or one at its run cap is refused) plus an operational precondition (quote first with X-Sigmora-Quote-Only) and a handoff to jobs_get for polling. It does not explicitly name the alternative tool for starting a brand-new run, but the failure/skip precondition effectively delimits usage.

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