Skip to main content
Glama

MailmanAPI

Read mailpiece status

get_mail
Read-onlyIdempotent

Read: Where a piece is now: state, timeline, tracking number and what to tell the person next. Pass id with the creating key, or the full private mail_url. Example: {"id":"mp_abcdefghijklmnopqrst"}

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

Input Schema

NameRequiredDescriptionDefault
idNo
mail_urlNo

Output Schema

NameRequiredDescriptionDefault
idYes
toYes
fromYes
modeYes
pagesYes
proofYes
quoteYes
routeYes
stateYes
objectYes
statusYes
optionsYes
paymentYes
productYes
serviceYes
approvalYes
mail_urlYes
timelineYes
next_stepYes
share_urlYes
cancelableYes
created_atYes
record_urlYes
reprint_ofNo
updated_atYes
drafted_viaYes
preview_urlYes
receipt_urlYes
to_as_givenYes
total_centsYes
approval_urlYes
cancel_untilYes
approval_hashYes
address_statusYes
cancel_summaryYes
payment_noticeNo
document_sha256Yes
payment_refusedNo
replacement_urlNo
tracking_numberYes
possible_duplicateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds a genuinely non-obvious access constraint - the id must be passed "with the creating key" - which tells the agent that credentials are scoped to the creator, plus a hint about what the response conveys ("what to tell the person next"). It stops short of stating error behavior if the key does not match.

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?

A single front-loaded sentence plus a minimal example; nothing is padded. The phrasing is a little telegraphic ("what to tell the person next") and leans on colon-chaining, but it costs almost no tokens.

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?

The tool is a simple two-parameter read with an output schema, so return values need no prose. Given that, the description covers purpose, access scoping, parameter alternatives and an example - everything an agent needs to invoke it correctly; only error handling is absent, which is minor here.

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 0%, so the description must carry parameter meaning, and it does: it establishes the either/or relationship between id and the "full private mail_url", stresses "full" and "private" for the URL, and supplies a concrete id example matching the mp_ pattern. It does not clarify that both parameters are formally optional yet one is practically required.

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 names a specific verb and resource ("Read: Where a piece is now") and enumerates the returned facets: state, timeline, tracking number. That is enough to distinguish it from siblings such as list_mail or send_mail without opening either schema, though it never explicitly names a contrasting sibling.

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 only implied: it is obviously for inspecting one existing mailpiece (you must already have an id or mail_url), but the description gives no explicit when-to-use versus when-not, and does not point to list_mail for enumeration or to approve_mail/cancel_mail for actions that follow a status check.

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