Skip to main content
Glama

Preview a mail order draft from letter text

postalform.preview_letter_order_draft
Read-only

Use this to prepare a non-writing preview for a mailed letter before creating checkout. It renders the letter, validates the addresses, and returns a widget with a create-draft action.

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": {
      "letter": "<letter>",
      "sender_name": "<sender_name>",
      "sender_address_type": "<sender_address_type>",
      "recipient_name": "<recipient_name>",
      "recipient_address_type": "<recipient_address_type>"
    },
    "name": "postalform.preview_letter_order_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorNo
letterYes
certifiedNo
mail_classNo
request_idNo
sender_nameYes
double_sidedNo
recipient_nameYes
sender_address_idNo
sender_address_textNo
sender_address_typeYes
recipient_address_idNo
sender_address_manualNo
recipient_address_textNo
recipient_address_typeYes
certified_return_receiptNo
recipient_address_manualNo

Output Schema

NameRequiredDescriptionDefault
viewYes
price_usdYes
page_countYes
sender_nameYes
draft_requestYes
recipient_nameYes
sender_address_textYes
recipient_address_textYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / recipient_address_manual / required
      Previous value: -[
      -  "line1",
      -  "line2",
      -  "city",
      -  "zip"
      -]New value: +[
      +  "line1",
      +  "city",
      +  "zip"
      +]
    • changedInput schema / properties / sender_address_manual / required
      Previous value: -[
      -  "line1",
      -  "line2",
      -  "city",
      -  "zip"
      -]New value: +[
      +  "line1",
      +  "city",
      +  "zip"
      +]
  2. Changed8 schema fields changed
    • changedInput schema / properties / recipient_name / maxLength
      Previous value: -32New value: +255
    • changedInput schema / properties / sender_name / maxLength
      Previous value: -32New value: +255
    • changedOutput schema / properties / draft_request / properties / recipient_name / maxLength
      Previous value: -32New value: +255
    • changedOutput schema / properties / draft_request / properties / sender_name / maxLength
      Previous value: -32New value: +255
    • addedOutput schema / properties / recipient_name / maxLength
      Added value: +255
    • addedOutput schema / properties / recipient_name / minLength
      Added value: +1
    • addedOutput schema / properties / sender_name / maxLength
      Added value: +255
    • addedOutput schema / properties / sender_name / minLength
      Added value: +1
  3. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false; the description reinforces this with 'non-writing preview' and adds useful behavior—it renders the letter, validates addresses, and returns a widget with a create-draft action. This goes beyond the annotations by describing side effects and the return artifact.

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?

Two tight sentences, front-loaded with 'Use this to' and no filler. Efficient, though it spends its limited length on workflow framing rather than the many parameters.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values need not be explained, but with 17 parameters, nested address objects, and 0% schema coverage, the definition is too thin for the tool's complexity. Key required inputs like address type and letter body structure are left for the agent to infer from the raw schema alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 17 parameters, 5 required, with nested objects and enums. The description only gestures at 'letter text' and 'addresses' and leaves mail_class, certified, color, double_sided, request_id, and address-type mechanics entirely unexplained, so it does not compensate for the coverage gap.

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 ('prepare a non-writing preview for a mailed letter') and clarifies it is a preview that renders and validates before checkout. It implicitly distinguishes itself from the create/checkout path, though it does not name the sibling create tool directly.

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?

Gives clear usage context: use it before creating checkout to preview a letter. The 'before creating checkout' framing tells the agent where this sits in the workflow, but it does not explicitly name an alternative tool or state when not to use it.

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