Skip to main content
Glama

Retry a failed episode

retry_episode
Destructive

Restart a failed episode from the step that failed (syncing the cameras, speaker detection or rendering). Nothing needs uploading again.

Call it when get_episode_status says the episode failed and suggests retry_episode. Tell the user what went wrong first. When get_episode_status suggests no tool (status "failed" with a contact-support next step), retrying won't help: the user needs a new episode or support@wizcut.com.

If speaker detection found no speech in the files it listened to, a plain retry fails the same way: ask the user which file has the clearest recording of everyone talking and pass its sourceId (from get_episode_status's file list) in diarizeSourceIds. That restarts from syncing.

An episode can be retried 5 times an hour. Retrying a render also counts against the account's limit of 3 concurrent renders (TOO_MANY_RENDERS). Next: it returns straight away; check get_episode_status in a few minutes. In chat apps that show WizCut's progress view under this result, the user watches it there.

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": {
      "jobId": "<jobId>"
    },
    "name": "retry_episode"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobIdYesThe episode's id (jobId), as returned by create_episode or list_episodes.
diarizeSourceIdsNoOnly when the files listened to for speaker detection had no speech: the sourceId(s) of the file(s) to listen to instead.

Output Schema

NameRequiredDescriptionDefault
jobIdYes
statusYesThe step the retry restarted.
repickedSourcesYesA new pick of files for speaker detection was sent.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the annotations, which only flag a destructive, non-idempotent, non-read-only write. The description discloses the 5-per-hour retry limit, the 3-concurrent-render account limit with the TOO_MANY_RENDERS error, that the call returns immediately rather than blocking, and that progress should be polled via get_episode_status.

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 with the action, then ordered into when-to-use, the diarization special case, and limits/next steps. It is denser than necessary in places, and the closing note about chat-app progress views is a mild digression, but no sentence is 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?

Despite only two parameters, this is a destructive, rate-limited, asynchronous operation, and the description covers the trigger condition, the exception path, limits, failure semantics, and what to do after calling. With an output schema present, it correctly omits return-value detail.

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 is 3, but the description adds real guidance: diarizeSourceIds should be used when speaker detection found no speech, the file should be chosen by asking the user which recording is clearest, and the sourceId comes from get_episode_status's file list, with the effect being a restart from syncing.

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?

States a specific verb and resource ('Restart a failed episode') plus the exact scope of the restart ('from the step that failed'), naming the three stages. An agent can distinguish it from recut_episode or render_episode without opening a schema.

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?

Explicitly gates invocation on get_episode_status suggesting retry_episode, and states the negative case: when status is 'failed' with a contact-support next step, retrying won't help and the user needs a new episode or support. It also gives the prerequisite of telling the user what went wrong first.

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