Skip to main content
Glama
postage-stamp-price-mcp

postage-stamp-price-mcp

Calculate letter postage

calculate_letter_postage
Read-onlyIdempotent

Calculate USPS retail postage for letters, postcards, and large envelopes by weight and destination, including nonmachinable surcharges, quantity totals, and Forever stamps per piece.

Instructions

Retail postage for one letter, postcard or large envelope (flat) by weight, to the US, Canada, Mexico or any other country, with the nonmachinable surcharge for square or rigid cards, the total for a quantity, and the number of Forever stamps per piece. Letters up to 3.5 oz, US large envelopes up to 13 oz.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "calculate_letter_postage"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoDefault "letter".
quantityNoNumber of identical pieces, for example 40 holiday cards. Default 1.
weight_ozNoWeight in ounces. Default 1.
destinationNo"US" (default), "Canada", "Mexico" or another country name.
nonmachinableNoTrue for square, rigid, lumpy or vertical letters and cards (adds the surcharge).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, openWorld, and non-destructive, so safety behavior needs no restating. The description adds value beyond that by disclosing what the response contains (nonmachinable surcharge, quantity total, Forever stamps per piece) and by capping the valid domain, which is meaningful given there is no output schema. It does not state any failure mode for out-of-range weights beyond the stated limits.

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 a single front-loaded sentence that starts with what is priced and defers coverage limits to the end, with no filler. It is dense to the point of being crammed, but every clause carries information an agent would otherwise lack.

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?

With five optional, fully defaulted parameters and no output schema, the description does the right extra work: it describes the returned figures and bounds the physical domain. The one shortfall is the absent sibling routing, which matters because two adjacent tools cover overlapping postage-pricing questions.

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 description coverage is 100%, so the schema already documents every parameter including defaults and the enum. The description reinforces 'nonmachinable' with the square/rigid card example and ties quantity to a total, but that meaning is largely already present in the schema, so baseline 3 applies.

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 opens with a specific verb+resource: retail postage for a single letter, postcard, or large envelope, priced by weight and destination, and enumerates outputs (surcharge, quantity total, Forever stamp count). Scope is unambiguous, but it never names or contrasts the siblings get_flat_rate_prices and get_stamp_price, so an agent must infer the boundary itself.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the stated envelope: letters up to 3.5 oz and US flats up to 13 oz, which tells the agent when the tool stops applying. However, there is no explicit routing guidance telling the agent to prefer get_flat_rate_prices for Priority/Express or get_stamp_price for pure stamp-price lookups, so the choice among siblings is left to inference.

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