Skip to main content
Glama

Retry job

retry_job

Start a new job with the same inputs as a finished job and return the new job_id. Environment variable values are not stored, so pass env again if the original job had any. Use it after a failure caused by something outside the job (e.g. a flaky download); to change the command, start a new job instead.

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
envNoEnvironment variables of the original job (required if it had any).
job_idYesJob ID (job_…) returned by run_job.
idempotency_keyNoOptional idempotency key for the new job.

Output Schema

NameRequiredDescriptionDefault
job_idYesID of the new job.
statusYesState of the new job.
retry_ofYesID of the original job.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=false, openWorldHint=true; the description goes beyond them by disclosing that this creates a brand-new job, that environment variables are not persisted and must be re-supplied, and what the call returns. It does not cover cost, quota, or whether the original job's artifacts are reused, which is why it stops short of 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 the core action and return value, followed by the env caveat and then the usage condition. No filler, and the ordering puts the most decision-relevant information first.

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?

The tool has an output schema, so return values need no prose, and all three parameters are fully documented in the schema. The description covers the remaining burden — side effect (new job created), the env gotcha, and the failure scenario that justifies retrying — leaving nothing an agent needs missing.

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 that env is 'required if it had any'; the description repeats that rule rather than extending it with format or edge-case guidance. The useful addition ('Environment variable values are not stored') explains the reason for the requirement but adds no new syntax or constraint.

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?

Names a specific verb and resource ('Start a new job with the same inputs as a finished job') and states the return value ('return the new job_id'). It also implicitly distinguishes itself from the plain job-submission sibling by saying 'to change the command, start a new job instead.'

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?

Explicit when-to-use ('after a failure caused by something outside the job (e.g. a flaky download)') and explicit when-not-to-use with the correct alternative ('to change the command, start a new job instead'). It also constrains input to a 'finished job,' so the agent knows the precondition.

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