Skip to main content
Glama
mailbox-mcp

mailbox-mcp

estimate_batch_mail

Read-onlyIdempotent

Estimate the exact cost of a mail batch before creating files, including printing, stock, envelopes, labels, handling, and USPS postage for First-Class or Marketing Mail.

Instructions

Price a batch before any file exists. Per piece: printing, card stock or paper, the envelope where one is used, the address label, handling and USPS postage. First-Class: 4×6 postcard $1.05, 6×9 postcard $1.35 (both sides in full color; a one-page design gets an address side printed with the return address), letter $1.15 (1 sheet) or $1.35 (2–3 sheets), flyer $1.15, pamphlet $1.95 (4–8 pages) or $2.75 (9–16 pages). Marketing Mail (200+ recipients, not open yet): postcards 85¢, letters and flyers 89¢, pamphlets $1.75. Color on letters, flyers and pamphlets adds 16¢ per color page; duplex is included (two pages per sheet). Volume: 5 % off at 500+, 10 % at 1,000+. No piece is priced below its minimum, our cost to make and mail it plus 5¢: two-sided color, extra sheets, the volume discount and account prices all stop there, and the estimate says when it applied. Postcards from 1 piece (a $2.00 small-batch fee under 10); letters, flyers and pamphlets from 10 (fewer: POST /v1/mail); up to 10,000 per batch. The estimate is the exact amount confirm debits. Sandbox keys get the same numbers with credits_required_cents 0.

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": {
      "mail_type": "<mail_type>",
      "quantity": "<quantity>"
    },
    "name": "estimate_batch_mail"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorNoColor printing for letters, flyers and pamphlets, charged per color page. Postcards are always full color.
stockNostandard (default) or weatherproof: tear- and water-resistant synthetic sheets for notices and small signs posted outdoors, letters and flyers only, +85¢ per sheet.
duplexNoPrint both sides of each sheet. Default false.
quantityYesRecipients: postcards from 1 (a $2.00 small-batch fee under 10), letters, flyers and pamphlets from 10 (fewer go as single letters); up to 10,000.
mail_typeYespostcard_4x6, postcard_6x9, letter (1–3 pages, 6 with duplex), flyer (1 page), pamphlet_light (4–8 pages), pamphlet_heavy (9–16 pages).
page_countNoPages in the template PDF (1 for an image). Default 1.
insert_pagesNoPrinted pages of the insert: 1, or 2 for both sides (a sticker sheet is 1). Default 1.
insert_stockNoThe insert's stock: paper (+30¢), weatherproof (+95¢) or label_sheet, one full 8.5 × 11 in weatherproof sticker printed on one side (+$1.45). Per piece; letters, flyers and pamphlets only.
mailing_classNofirst_class (USPS First-Class Mail, 1–5 days, forwarded and returned; the default) or marketing_mail (USPS Marketing Mail, 3–10 days, 200+ recipients; not open until the facility's USPS permit is active). The class is USPS postage, not a description of the content: USPS requires bills, statements and personal correspondence to go first_class.

Output Schema

NameRequiredDescriptionDefault
resultYesThe estimate in US cents: per piece, volume discount, total, and what a live key would be charged.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv1.0.5
    • addedInput schema / properties / insert_pages
      Added value: +{
      +  "description": "Printed pages of the insert: 1, or 2 for both sides (a sticker sheet is 1). Default 1.",
      +  "maximum": 2,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / insert_stock
      Added value: +{
      +  "description": "The insert's stock: paper (+30¢), weatherproof (+95¢) or label_sheet, one full 8.5 × 11 in weatherproof sticker printed on one side (+$1.45). Per piece; letters, flyers and pamphlets only.",
      +  "enum": [
      +    "paper",
      +    "weatherproof",
      +    "label_sheet"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / mailing_class / description
      Previous value: -"first_class (USPS First-Class Mail, 1–5 days, forwarded and returned; the default) or marketing_mail (USPS Marketing Mail, 3–10 days, 200+ recipients; not open until the facility's USPS permit is active). The class is USPS postage, not a description of the content: bills, statements and personal correspondence must go first_class."New value: +"first_class (USPS First-Class Mail, 1–5 days, forwarded and returned; the default) or marketing_mail (USPS Marketing Mail, 3–10 days, 200+ recipients; not open until the facility's USPS permit is active). The class is USPS postage, not a description of the content: USPS requires bills, statements and personal correspondence to go first_class."
    • changedInput schema / properties / quantity / description
      Previous value: -"Recipients: postcards from 1 (a $2.00 small-batch fee under 10), letters, flyers and pamphlets from 10 (fewer: send_outbound_mail); up to 10,000."New value: +"Recipients: postcards from 1 (a $2.00 small-batch fee under 10), letters, flyers and pamphlets from 10 (fewer go as single letters); up to 10,000."
    • addedInput schema / properties / stock
      Added value: +{
      +  "description": "standard (default) or weatherproof: tear- and water-resistant synthetic sheets for notices and small signs posted outdoors, letters and flyers only, +85¢ per sheet.",
      +  "enum": [
      +    "standard",
      +    "weatherproof"
      +  ],
      +  "type": "string"
      +}
  2. Addedv1.0.4

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already establish readOnly, idempotent, non-destructive, closed-world behavior, and the description adds important context: estimates match the exact amount confirm debits, minimum pricing floors stop discounts and account prices, volume discounts apply at 500+ and 1,000+, and sandbox keys return the same numbers with credits_required_cents 0. These details go well beyond the annotations without contradicting them.

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 and core pricing model are front-loaded, and nearly every sentence contributes pricing rules, boundaries, or behavior. It is dense and could be more scannable with structure, but it avoids empty filler and earns most of its length for a pricing-estimation tool.

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?

Given nine parameters, multiple pricing dimensions, an output schema, and rich annotations, the description is complete enough to select and invoke the tool correctly. It covers base rates, class differences, color/duplex effects, quantity limits, volume discounts, minimum-price behavior, and sandbox behavior; insert pricing is left to the fully described schema.

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 each parameter, including enum values and several add-on costs. The description adds meaningful cost semantics for parameter choices, such as per-mail-type base prices, color adding 16¢ per color page for letters/flyers/pamphlets, duplex being included, and volume discount thresholds tied to quantity.

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 opens with a specific verb and resource: 'Price a batch before any file exists.' It distinguishes the estimate from the actual confirmation by stating 'The estimate is the exact amount confirm debits,' so an agent can tell it is a pre-flight pricing call rather than a creation or confirmation call.

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?

The description clearly says to use it before any file exists and gives quantity boundaries, including that letters, flyers and pamphlets require 10+ and fewer should go via POST /v1/mail. It stops short of naming sibling tools such as quote_outbound_mail for single-piece pricing, so the alternative is implied through an API endpoint rather than explicitly routed to a sibling tool.

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