Skip to main content
Glama

advance_test_batch_mail

Sandbox keys only: simulate the facility one step (submitted → in_progress → completed). Completion marks every piece mailed and fires batch.completed to the agent's webhook, exactly as the facility would. With qr_event and piece it records a scan or a confirmation on that piece of a sandbox batch with QR codes instead, as if a phone scanned it, and the batch.piece.* webhooks fire. Live batches are advanced by the facility, never by the API.

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": "advance_test_batch_mail"
  }
}

Input Schema

NameRequiredDescriptionDefault
pieceNoThe piece (1-based) for qr_event.
batch_idYesThe batch's id (UUID).
qr_eventNoRecord a scan or a confirmation instead of advancing the batch.

Output Schema

NameRequiredDescriptionDefault
resultYesbatch, previous_status, sandbox true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / batch_id / description
      Previous value: -"The batch's id (UUID) from create_batch_mail or list_batch_mail."New value: +"The batch's id (UUID)."
  2. Changed2 schema fields changed
    • addedInput schema / properties / piece
      Added value: +{
      +  "description": "The piece (1-based) for qr_event.",
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / qr_event
      Added value: +{
      +  "description": "Record a scan or a confirmation instead of advancing the batch.",
      +  "enum": [
      +    "scan",
      +    "confirm"
      +  ],
      +  "type": "string"
      +}
  3. Added

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing side effects: completion marks every piece mailed, fires batch.completed to the agent's webhook, and the qr_event path fires batch.piece.* events. It also states the auth constraint (sandbox keys only). It stops short of describing error/edge behavior (e.g. advancing an already-completed batch) and does not discuss idempotency despite idempotentHint=false.

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?

Front-loads the most important constraint ('Sandbox keys only') and uses three tight sentences with no filler. It is dense but every clause carries information; a short explicit statement of the qr_event vs. advance branch would have made the structure even easier to scan.

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?

An output schema exists, so return values need no explanation, and the description covers the sandbox restriction, both operating modes, and the webhook side effects. What remains unstated is failure behavior and whether repeated calls at the same state are safe, which matters for a non-idempotent mutation.

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 100%, so the baseline is 3, but the description adds relational meaning the schema does not: qr_event and piece are coupled — the pair records a scan or confirmation on a specific piece rather than advancing the batch. That clarifies the optional parameters' interaction beyond their individual schema descriptions.

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 (simulate the facility advancing a test batch one step, submitted → in_progress → completed) and explicitly scopes it to sandbox batches. The closing line 'Live batches are advanced by the facility, never by the API' draws a hard boundary that separates it from real-advancement operations and from the outbound-mail 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 explicit when-to-use ('Sandbox keys only') and when-not ('Live batches are advanced by the facility, never by the API'). It also names the alternative mode inline — 'With qr_event and piece it records a scan or a confirmation ... instead of advancing the batch' — so the agent knows the two behaviors and how to select between them.

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.