Skip to main content
Glama

Continue a paused template run

resume_template_run

Continue a recreate_template run that paused (the price went up while it was starting, or the credits ran out): the same run picks up the pieces that weren't made, nothing finished is made again. Call it first with only run_id: it returns why it paused, what the rest costs now and a confirmation id. Tell the user and wait for a clear yes, then call it again with max_credits (that total) and confirmation (that id). Nothing is charged without both.

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_id": "<run_id>"
    },
    "name": "resume_template_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYesThe run_id of a paused run (get_template_run says when it is paused).
max_creditsNoRequired to continue: the quoted total for the rest that the user agreed to. Leave it out to get the quote; nothing is charged without it.
confirmationNoRequired to continue, together with max_credits: the confirmation id from the quote, passed back exactly.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true, idempotentHint=false) it discloses the cost guardrail ('nothing is charged without both') and the resume semantics ('nothing finished is made again'). That is exactly the billing and partial-completion behavior the annotations cannot express. It does not say whether a quote can expire or how long the confirmation id stays valid, which keeps it just 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?

Front-loaded with what the tool does and why a run pauses, then the two-step call procedure, then the billing guarantee. Every sentence contributes operational content; there is no filler or restatement of the name.

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?

For a cost-involving mutation with three parameters and no output schema, the description still explains what the first call returns (pause reason, current cost, confirmation id) and what the second call requires. An agent has everything needed to run the flow correctly and safely against a 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 run_id, max_credits and confirmation are already documented, including the quote/charge distinction. The description reinforces the sequencing (run_id alone, then the pair) but adds little semantic detail the schema does not already carry; baseline 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: continue a paused 'recreate_template' run, and names the pause causes (price increase, credits exhausted). It is clearly distinguishable from recreate_template (which starts a run) and from get_template_run (which only reports paused status, as the schema notes).

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 two-phase protocol: first call with run_id alone to obtain the reason, new cost and confirmation id; then call again with max_credits and confirmation after the user says yes. It states a hard precondition ('wait for a clear yes') and leaves no ambiguity about ordering.

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.