Skip to main content
Glama

The Letter Pilot

Prepare an unpaid letter for review

tlp_prepare_letter
Idempotent

Prepare one domestic US Letter mailing with the customer's approved recipient, return address and finished letter. Provide exact finished text or a customer-selected PDF attachment and a unique UUID request_id. Reuse the request ID only to retry the same mailing. The customer opens the private link to review and authorize any payment and mailing on The Letter Pilot. Keep payment credentials on the website.

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": {
      "service": "<service>",
      "request_id": "<request_id>",
      "recipient": "<recipient>",
      "return_address": "<return_address>"
    },
    "name": "tlp_prepare_letter"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoOne PDF transferred by the supported ChatGPT file attachment flow. Supply exactly one of letter_text or file.
serviceYes
recipientYes
request_idYesUse a new random UUID for each distinct letter. Reuse the same UUID only when retrying identical inputs.
letter_textNoThe finished, customer-approved letter text. Supply exactly one of letter_text or file.
return_addressYes

Output Schema

NameRequiredDescriptionDefault
noticeYes
serviceYes
currencyYes
estimateYes
expires_atYes
page_countYes
review_urlYes
amount_centsYes
status_referenceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the supplied annotations, the description discloses the retry/idempotency contract ('Reuse the request ID only to retry the same mailing') and, importantly, that this tool does not take payment — authorization happens by the customer on the website. That is genuine behavioral context an agent could not derive from readOnlyHint=false and idempotentHint=true alone. It doesn't state failure modes or timing, which keeps it below a 5.

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?

Five short sentences, front-loaded with the action and required inputs before moving to the review/payment flow. The request-ID retry sentence partially duplicates the request_id schema description, a small redundancy but not damaging.

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?

For a six-parameter nested mutation tool, the definition covers the essential contract: what to supply, the idempotency rule, and who authorizes payment. An output schema exists, so return-format detail is rightly omitted; the remaining gap is guidance on choosing among the seven service levels.

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?

With schema description coverage at 50%, the schema already explains letter_text/file exclusivity and the request_id retry rule, and the description largely restates those points rather than adding to them. It adds nothing about the service enum values (first_class, certified variants, priority), which is a meaningful gap given seven options with no in-description explanation of their differences.

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 concrete verb and resource — 'Prepare one domestic US Letter mailing' — and enumerates the inputs it needs (approved recipient, return address, finished letter). The word 'one' and 'Letter mailing' implicitly scope it to a single letter, but it never explicitly contrasts itself with tlp_prepare_mailing or tlp_quote, so sibling differentiation is left to inference.

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?

It gives a real when-to-use signal by describing the full flow: prepare here, then the customer reviews the private link and authorizes payment on the website. It also states a clear constraint — keep payment credentials on the website — but names no alternative tool and no explicit case where this tool should not be used.

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