Skip to main content
Glama

Retry failed products, or resume after a top-up

retry_batch

Tries a batch’s failed products again from where each stopped (free; all, or item_ids). With resume true instead: starts the products that waited for credits (step waiting_credits) after a top-up, spending their credits. Example: {"batch_id": "…"}

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": {
      "batch_id": "<batch_id>"
    },
    "name": "retry_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
resumeNoStart the products waiting for credits instead
batch_idYes
item_idsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-idempotent, non-destructive mutation; the description adds meaningful behavior beyond that: retry is free, resume spends credits, and work continues 'from where each stopped' rather than restarting. It does not state what is returned or what happens if nothing is eligible, which keeps it at a 4.

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?

It is front-loaded, dense, and free of filler, with a concrete call example. The parenthetical '(free; all, or item_ids)' is slightly telegraphic and takes a moment to parse, which costs a point.

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 3-parameter mutation with no output schema, the description covers the two operating modes, their cost implications, and the subset filter. Return values and no-op/error conditions are left unstated, but nothing critical to invoking it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 33% (only resume is documented inline), so the description must compensate: it explains item_ids as an optional subset ('all, or item_ids') and clarifies that resume targets products in the waiting_credits step and consumes their credits. batch_id is only implied by the example, leaving one parameter thinly covered.

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?

The description names a specific verb (retry) and resource (a batch's failed products), and clearly separates the two modes: plain retry versus resume of products in the waiting_credits step. It does not name a sibling tool to contrast against (e.g., start_batch or get_batch), which keeps it just short of a 5.

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?

It gives explicit conditions for each mode: use the default when products failed, use resume=true after a top-up for products that waited for credits. It does not mention what to do when there are no failed products or when a batch is still running, so alternatives/prerequisites are only partially covered.

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.