Skip to main content
Glama

Send a letter (COSTS MONEY)

lob_create_letter
Destructive

⚠️ SENDS A REAL LETTER and charges your Lob account (use a test_ key to avoid real mail/charges). to/from accept an address id (adr_…) or inline object. file accepts an HTML string, a hosted PDF/URL, or a template id (tmpl_…). color is required. Cancelable only before send_date. Lob API: POST /v1/letters.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesEither an existing address id (adr_…) or an inline address object.
fileYesLetter body: HTML string, asset/PDF URL, or template id (tmpl_…).
fromYesReturn address (id or inline object). Required for letters.
colorYestrue = color printing, false = black & white.
send_dateNoISO-8601 date/time to schedule the send (future). Cancelable until then.
descriptionNoInternal label.
double_sidedNoPrint on both sides. Default true.
merge_variablesNoKey/value data merged into HTML templates.
address_placementNoWhere the recipient address is placed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare destructiveHint=true; the description adds the critical economics (charges the account, real mail), the test-key escape hatch, and the cancellation window ('Cancelable only before send_date'). These are exactly the behavioral traits the hint cannot convey.

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?

The money warning is front-loaded in caps, followed by tightly packed parameter facts and the underlying endpoint. No sentence is wasted.

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 9-parameter mutation with nested objects and no output schema, the description covers cost, cancellation, and input shapes well. It omits any mention of what is returned (e.g. the letter id used later with lob_get_letter/lob_cancel_postcard-style flows), a minor gap given no output schema.

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?

Schema description coverage is 100%, so the schema already documents every parameter. The description largely restates it (adr_/inline address forms, HTML/URL/tmpl_ for file, color required) rather than adding new syntax or defaults, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('SENDS A REAL LETTER', 'POST /v1/letters') and makes the scope unmistakable. It is trivially distinguishable from siblings like lob_create_postcard and lob_create_self_mailer, which are different physical products.

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 actionable guidance: use a test_ key to avoid real mail/charges, and the letter is cancelable only before send_date. It does not explicitly name an alternative (e.g. postcards) or state when a letter is preferred over one, but the context for correct invocation is clear.

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.