Skip to main content
Glama

Write a letter

compose_letter

Lays out plain text as a US Letter business letter (a Times-style serif, 12 pt, 1-inch margins) with an optional return address (from), date, inside address (to), subject, closing and signature name. Blank lines separate paragraphs. Supports Latin (including Turkish), Greek and Cyrillic text; no emoji or CJK. An optional signature costs $1: electronic (prints "Signed electronically" and a verification code; needs signature_name and consent) or drawn (prints the PNG image and the same code). Returns a document ID and a private document token.

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": {
      "body": "<body>"
    },
    "name": "compose_letter"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo
bodyYes
dateNo
fromNo
closingNo
subjectNo
filenameNoletter.pdf
signatureNo
signature_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / properties / to / $ref
      Removed value: -"#/properties/from"
    • addedInput schema / properties / to / additionalProperties
      Added value: +false
    • addedInput schema / properties / to / properties
      Added value: +{
      +  "address_city": {
      +    "maxLength": 80,
      +    "type": "string"
      +  },
      +  "address_line1": {
      +    "maxLength": 100,
      +    "type": "string"
      +  },
      +  "address_line2": {
      +    "maxLength": 100,
      +    "type": "string"
      +  },
      +  "address_state": {
      +    "maxLength": 20,
      +    "type": "string"
      +  },
      +  "address_zip": {
      +    "maxLength": 10,
      +    "type": "string"
      +  },
      +  "name": {
      +    "maxLength": 80,
      +    "minLength": 1,
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / to / required
      Added value: +[
      +  "name"
      +]
    • addedInput schema / properties / to / type
      Added value: +"object"
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already declare this is a non-read-only, non-idempotent, open-world write, and the description adds real value beyond them: a $1 charge for signatures, the two signing modes and what each prints, the supported character sets with an explicit no-emoji/no-CJK limit, and the returned document ID plus private token. Remaining gaps are minor, such as failure behavior when unsupported characters are supplied.

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?

The purpose and layout are front-loaded in the first sentence, and the remaining sentences cover paragraphs, character set limits, paid signing, and return values with little waste. The typographic parenthetical (serif, 12 pt, 1-inch margins) is the only detail that does not help an agent call it correctly.

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?

For a nine-parameter nested write tool with no output schema and zero schema descriptions, the description supplies the return values (document ID and private token), the cost and prerequisites of the optional signature, and the input text limitations. Only the filename parameter and length caps are left to the schema, which is acceptable.

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 carries the burden, and it explains most of the nine parameters in prose: from as return address, to as inside address, date, subject, closing, signature_name, and the discriminated signature object with its consent and PNG requirements. It does not mention filename (default letter.pdf) or the 30,000-character body cap, leaving one parameter undocumented and constraints to the schema.

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 states a precise verb and resource: it lays out plain text as a US Letter business letter, and it enumerates the structural parts it emits (return address, date, inside address, subject, closing, signature). It is highly specific but never differentiates itself from the sibling send_letter, so an agent must infer that this only composes a document rather than delivering it.

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: returning a document ID and private token suggests a later send step with send_letter, and the signature sentence states the prerequisites (signature_name plus consent, or a PNG) for the paid option. There is no explicit when-to-use or when-not-to-use statement, and no guidance on choosing this over send_letter or quote_document.

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