Skip to main content
Glama

confirm_batch_mail

DestructiveIdempotent

Pay for a draft from the account's prepaid credits and queue it for printing. Debits exactly batch.pricing.total_cents once (repeating returns the current state). Only after the person has seen the proof. The key's policies apply: a key that requires approval cannot pay (the owner confirms in the dashboard), max_daily_pieces counts the whole batch, and max_cost_cents refuses before any debit. A sandbox key pays nothing, and a sandbox batch moves forward only through the sandbox advance call.

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

Input Schema

NameRequiredDescriptionDefault
batch_idYesThe batch's id (UUID).
max_cost_centsNoRefuse before any debit if batch.pricing.total_cents is above this, in cents.

Output Schema

NameRequiredDescriptionDefault
resultYesThe batch after payment, credits_charged_cents, credit_balance_cents, sandbox and next_step.

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. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructive/idempotent/openWorld, but the description adds substantial context beyond them: the exact debit amount (batch.pricing.total_cents, charged once), the repeat-call semantics (returns current state rather than re-charging), pre-debit refusal via max_cost_cents, whole-batch accounting for max_daily_pieces, and no-charge behavior for sandbox keys. That is exactly the kind of consequence disclosure a billing mutation needs.

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?

Four tight sentences with the action and cost front-loaded, then preconditions, then policy edge cases. Every sentence carries distinct information (payment, idempotency, proof precondition, key policies, sandbox) with no restatement of the tool name or schema fields.

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 destructive billing tool with only two parameters, the description covers cost, idempotency, precondition, approval gating, limit interactions, and sandbox divergence; an output schema exists so return values need not be explained. Nothing an agent needs before invoking it 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 100%, so the schema already defines both parameters; however the description adds meaning at the parameter level by tying batch_id to a draft batch whose pricing total is what gets debited, and by clarifying that max_cost_cents is evaluated before any debit and that daily-piece limits count the entire batch rather than individual pieces.

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 chain: 'Pay for a draft ... and queue it for printing', which is precisely distinguishable from create_batch_mail (draft creation), cancel_batch_mail (teardown), and get_batch_mail_proof (proof retrieval). An agent can tell what this tool uniquely does without opening any schema.

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 precondition ('Only after the person has seen the proof') and an explicit exclusion plus alternative route ('a sandbox batch moves forward only through the sandbox advance call'), which maps to the advance_test_batch_mail sibling. It also states the key-policy condition under which this tool cannot be used at all (approval-required keys, owner confirms in dashboard).

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.