Skip to main content
Glama

retry_job

Idempotent

Resume a stopped, cancelled, or finished job to retry failed video caption tasks with a fresh set of attempts.

Instructions

Resume a stopped, cancelled or finished job, giving failed videos a fresh set of attempts.

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": {
      "job_id": "<job_id>"
    },
    "name": "retry_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesJob ID such as 'job_3'.

Output Schema

NameRequiredDescriptionDefault
kindYes
itemsYes
limitYes
scopeYes
job_idYes
statusYes
totalsYes
channelYes
guidanceYesWhat the assistant should do next.
languageYes
created_atYes
error_codeYes
updated_atYes
finished_atYes
next_cursorYes
next_run_atYes
error_messageYes
discovery_completeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare it as a non-read-only, non-destructive, idempotent operation, lowering the burden. The description usefully adds that failed videos get a fresh set of attempts, but does not say whether already-successful videos are re-run, whether progress is reset, or what happens to a job mid-run.

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?

One sentence, verb front-loaded, with the state qualifiers attached to the action rather than buried. Nothing extraneous.

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?

With annotations, a fully documented single parameter, and an output schema handling return values, the description covers purpose and eligibility adequately. The only gap is behavior toward partially completed jobs, which is minor for this complexity.

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 100% with a single job_id parameter whose format example is already in the schema, so the description need only match that baseline. It adds no further meaning about the identifier or its scope.

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?

Specific verb (resume/retry) plus resource (job) and explicit eligible states (stopped, cancelled, finished), which distinguishes it from cancel_job and get_job_status without naming them. It stops short of naming a sibling explicitly.

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 eligible job states are stated directly, which tells an agent the precondition for calling it. There are no explicit exclusions (e.g. what to do for a running job) or named alternatives, so it falls short of full routing guidance.

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