Skip to main content
Glama

MailmanAPI

Quote a mailpiece

quote_mail
Read-onlyIdempotent

Read: Price a piece without making a draft. Letters need pages or a base64 PDF; postcards need a size. Example: {"product":"letter","service":"certified","pages":1}

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": {
      "product": "<product>",
      "service": "<service>"
    },
    "name": "quote_mail"
  }
}

Input Schema

NameRequiredDescriptionDefault
pagesNoInteger 1-12. A letter quote takes exactly one of pages or document. Omit both for postcards.
optionsNo
productYes
serviceYes
documentNo

Output Schema

NameRequiredDescriptionDefault
pagesYes
optionsYes
productYes
serviceYes
currencyYes
providerYes
line_itemsYes
total_centsYes
card_total_centsNo
payment_processingNo
provider_cost_centsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered structurally. The description reinforces this with 'without making a draft' — useful confirmation that no draft resource is persisted — but adds nothing on error conditions, pricing validity, or result shape. Reasonable given the annotation coverage.

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?

Two short sentences plus an inline example, front-loaded with the read-only framing and the per-product requirements. No filler or redundant restatement of the title.

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?

Output schema exists, so return values need not be described, and the description covers the main product branches and the pages/document exclusivity. A 5-param tool with a nested options object could use a note on service enum meanings and invalid combinations, but nothing critical for correct invocation 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 description coverage is low (20%), so the description carries real weight: it explains the pages-vs-document choice for letters, the postcard size requirement, and supplies a concrete request example. It does not explain the 'service' enum values or the color/duplex behavior beyond what is already in the schema, leaving some compensating work undone.

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?

States a specific verb and resource ('Price a piece') and adds a distinguishing scope note ('without making a draft'), so an agent can tell it apart from mutating siblings like send_mail or approve_mail. It stops short of naming an explicit alternative.

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?

Gives conditional requirements per product ('Letters need pages or a base64 PDF; postcards need a size') and a worked example, which implies when the tool applies. It never states when to prefer this over another quoting or drafting path, so guidance is implied rather than explicit.

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.

Resources