Skip to main content
Glama

resume_run

Resume a paused run after an external stage is answered or a spending limit stops it, and optionally raise the run's limit when the person supplies the new total.

Instructions

Resume a paused run after its external stage was answered (submit_stage does this for you), or a run its spending limit stopped (a paid run asks the person for a new, higher total in the dialog). To use a total the person has already said, pass it as max_usd together with their own words in person_words. To let the person raise the limit at a resume that is not a stop, pass raise_limit: true: the dialog asks them for the new total and nothing is pre-filled. Completed stages replay from disk and cost nothing.

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": {
      "run": "<run>"
    },
    "name": "resume_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
runYes
max_usdNoa positive number of dollars. On a run with a paid seat this is the new total THE PERSON said, and it is used only together with person_words, their own words as they typed them, which must contain this number: you never choose or suggest a figure. Without the person's words a figure is refused (nothing is started); without a figure the person types the new total in the dialog. For a run held to a cap per provider (COUNCIL_SPEND_CAPS), leave it out: it is refused, and the person types, in the dialog, the new total for each cap the run asks about. For a chain with no paid seat it raises the ceiling for the rest of this run, and "none" removes it. "none" is refused where the user set COUNCIL_MAX_USD_LIMIT; a figure above that limit is refused; 0 is refused.
raise_limitNotrue: ask the PERSON, in the dialog, for a new total limit for this run at this resume, though the run has not stopped at its limit. They type the figure; you pass none and nothing is pre-filled (use max_usd with person_words instead when the person already said the figure). Not with max_usd or person_words. A run with a paid seat only. A run held to a cap per provider (COUNCIL_SPEND_CAPS) is refused: its caps are raised one at a time, when the run stops at one.
claude_routeNowhere the chain's Claude seats are called: "auto" (the default: straight to Anthropic, or through OpenRouter when only an OpenRouter key is set), "anthropic", "openrouter" or "session". With "session" every Claude seat is answered by the person's own Claude Code session, one session for each seat: the run pauses at each such seat the way it does at an external stage, and those seats cost no API money. Only the person chooses it; leave it out unless the person chose a route. A run that began as a session run stays one when nothing is typed.
person_wordsNothe person's own words, exactly as they typed them in this conversation, saying the new total (for example "raise it to $12"). Required with max_usd on a run with a paid seat, and the number in max_usd must appear in them. Never write or paraphrase these words yourself. The tool cannot check that the person said them: the record keeps the words and that you relayed them.
zero_retentionNo"on" or "off": with "on" every call through OpenRouter names only the hosts that OpenRouter's list gives for its model as zero-retention hosts, and a seat no such host serves is named and the start refused. Seats called straight to their lab are not covered. Leave it out unless the person chose; a run that began with it on keeps it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.8.4
    • addedInput schema / properties / claude_route
      Added value: +{
      +  "description": "where the chain's Claude seats are called: \"auto\" (the default: straight to Anthropic, or through OpenRouter when only an OpenRouter key is set), \"anthropic\", \"openrouter\" or \"session\". With \"session\" every Claude seat is answered by the person's own Claude Code session, one session for each seat: the run pauses at each such seat the way it does at an external stage, and those seats cost no API money. Only the person chooses it; leave it out unless the person chose a route. A run that began as a session run stays one when nothing is typed.",
      +  "type": "string"
      +}
    • changedInput schema / properties / max_usd / description
      Previous value: -"the figure to suggest as the run's new total, a positive number. A paid run its limit stopped asks the person for the new total in the dialog; this figure is only the suggestion. For a chain with no paid seat it raises the ceiling for the rest of this run, and \"none\" removes it. \"none\" is refused where the user set COUNCIL_MAX_USD_LIMIT; a figure above that limit is refused; 0 is refused."New value: +"a positive number of dollars. On a run with a paid seat this is the new total THE PERSON said, and it is used only together with person_words, their own words as they typed them, which must contain this number: you never choose or suggest a figure. Without the person's words a figure is refused (nothing is started); without a figure the person types the new total in the dialog. For a run held to a cap per provider (COUNCIL_SPEND_CAPS), leave it out: it is refused, and the person types, in the dialog, the new total for each cap the run asks about. For a chain with no paid seat it raises the ceiling for the rest of this run, and \"none\" removes it. \"none\" is refused where the user set COUNCIL_MAX_USD_LIMIT; a figure above that limit is refused; 0 is refused."
    • addedInput schema / properties / person_words
      Added value: +{
      +  "description": "the person's own words, exactly as they typed them in this conversation, saying the new total (for example \"raise it to $12\"). Required with max_usd on a run with a paid seat, and the number in max_usd must appear in them. Never write or paraphrase these words yourself. The tool cannot check that the person said them: the record keeps the words and that you relayed them.",
      +  "maxLength": 2000,
      +  "type": "string"
      +}
    • addedInput schema / properties / raise_limit
      Added value: +{
      +  "description": "true: ask the PERSON, in the dialog, for a new total limit for this run at this resume, though the run has not stopped at its limit. They type the figure; you pass none and nothing is pre-filled (use max_usd with person_words instead when the person already said the figure). Not with max_usd or person_words. A run with a paid seat only. A run held to a cap per provider (COUNCIL_SPEND_CAPS) is refused: its caps are raised one at a time, when the run stops at one.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / zero_retention
      Added value: +{
      +  "description": "\"on\" or \"off\": with \"on\" every call through OpenRouter names only the hosts that OpenRouter's list gives for its model as zero-retention hosts, and a seat no such host serves is named and the start refused. Seats called straight to their lab are not covered. Leave it out unless the person chose; a run that began with it on keeps it.",
      +  "type": "string"
      +}
  2. Changed2 schema fields changedv0.8.3
    • removedInput schema / properties / allow_secret_shaped
      Removed value: -{
      -  "description": "continue a run the outbound key scan stopped (STOPPED-secret.md) and send the key-shaped text anyway; saved with the run from then on. Off unless given.",
      -  "type": "boolean"
      -}
    • changedInput schema / properties / max_usd / description
      Previous value: -"raise the per-run ceiling for the rest of this run, a positive number. \"none\" removes it (refused if the user set COUNCIL_MAX_USD_LIMIT); 0 is refused."New value: +"the figure to suggest as the run's new total, a positive number. A paid run its limit stopped asks the person for the new total in the dialog; this figure is only the suggestion. For a chain with no paid seat it raises the ceiling for the rest of this run, and \"none\" removes it. \"none\" is refused where the user set COUNCIL_MAX_USD_LIMIT; a figure above that limit is refused; 0 is refused."
  3. First observedv0.8.1

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it explains that completed stages replay from disk at no cost, that paid runs prompt the person in a dialog, and that certain inputs are refused. It does not discuss permissions or broader run-state effects, so it is not fully exhaustive.

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?

The purpose is front-loaded and most sentences add operational detail. The prose is dense and occasionally awkward, but it avoids filler and stays focused on decisions the agent must make.

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 six-parameter mutation tool with no annotations and no output schema, the description covers the key resume scenarios, spend-limit behavior, dialog prompts, and zero-retention effects. A note on return values or post-resume state would make it fully complete.

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 high at 83%, so the schema already explains most parameter meaning. The description reinforces the relationship between max_usd and person_words and the constraints on raise_limit, but adds little beyond what the schema descriptions already say.

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 description states a specific verb (Resume) and resource (run), and distinguishes the two supported conditions: a paused run whose external stage was answered, or a run stopped by its spending limit. It also names submit_stage as the sibling that normally performs the first case automatically.

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?

It explicitly says when to use submit_stage instead, when to pass max_usd with person_words, when to use raise_limit, and when those options are refused. The exclusions are concrete rather than implied.

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