Skip to main content
Glama

resume_job

Resume a job from its last checkpoint on a different supplier by starting a new paid run, requiring user confirmation and a spend cap. Use after checking resume info and agreeing to costs.

Instructions

Start a NEW PAID run that resumes a job from its last checkpoint on a different supplier. This spends money. It requires confirm set to true and a spend cap in max_spend_usd. Call get_resume_info first, show the user what it returns, and ask the user before calling this tool with confirm true. The request is never retried automatically. Needs KILAWATT_API_KEY.

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>",
      "confirm": "<confirm>",
      "max_spend_usd": "<max_spend_usd>"
    },
    "name": "resume_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesThe job ID (36 characters, hex digits and dashes).
confirmYesMust be exactly true, and only after the user has agreed to start a paid run.
max_spend_usdYesRequired spend cap in USD for the new run. Must be a positive number.
duration_secondsNoOptional run length in seconds, a whole number from 60 to 86400.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.1

TDQS

A4.2/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false, so the description carries most of the burden and does so well: it discloses that the call spends money, requires confirm=true plus a spend cap, needs KILAWATT_API_KEY, and is never retried automatically. It stops short of saying what happens to the source job or what a successful response contains.

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?

Five short sentences, front-loaded with the highest-stakes fact (this spends money), then the requirements, then the required pre-call workflow. Nothing is redundant or padded.

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 four-parameter mutation with no output schema, the description covers cost, consent, credentials, and retry behavior. The only gap is the shape of the result a resumed run returns, which an agent might want before reporting back to the user.

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%, so every parameter including duration_seconds is already documented. The description reinforces the semantics of confirm and max_spend_usd as a user-consent gate and spend cap, but adds no format or constraint detail beyond the schema, so the baseline of 3 applies.

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 with scope: 'Start a NEW PAID run that resumes a job from its last checkpoint on a different supplier.' The words NEW, PAID, and 'resumes ... checkpoint' distinguish it from a fresh run and from the read-only get_resume_info sibling.

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?

Gives an explicit sequencing rule: call get_resume_info first, show the user what it returns, and ask the user before calling this tool with confirm true. That is both a when-to-use condition and a hard prerequisite, with no inference required.

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