Skip to main content
Glama

Preview letter mailing

spur_preview_letter_campaign
Read-only

Required step before mailing letters. Renders the letter with the first recipient's real data in its letter type's layout, checks which owners have mailing addresses, estimates the cost from the user's plan (Insert Blank Page letters include the extra address page), and returns a confirmation_token.

Show the preview, then ask the user to approve. Only after they approve, call spur_send_letters with the token (the widget's Send button does the same). The token expires in 30 minutes and only covers this exact template, letter type, print options, recipient set and return address.

Input Schema

NameRequiredDescriptionDefault
colorNoPrint in color (false for black and white)
owner_idsYesOwners to mail (spur_find_owners)
template_idYesLetter template id (UUID from a Spur list/search tool)
double_sidedNoPrint on both sides of each sheet
return_address_idNoDefaults to the user's default return address

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

With readOnlyHint=true already declared, the description adds substantial context the annotations cannot: the token's 30-minute expiry, its exact scoping (this template, letter type, print options, recipient set, return address), what gets computed (address check, cost estimate, blank-page surcharge), and that no mail is sent here. Nothing contradicts the readOnly/idempotent hints.

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?

Two tight paragraphs: the mandatory-step requirement and token semantics lead, the approval workflow follows. Every sentence carries actionable information with no repetition of schema fields.

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 preview tool with no output schema, the description still tells the agent what comes back (rendered letter on real data, address availability, cost estimate, confirmation_token) and the full lifecycle constraint on the token. Nothing needed to invoke or follow up correctly is missing.

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 coverage is 100%, so the baseline is 3; the description goes beyond it by explaining that print options and the return address are part of the binding token scope, and by noting the Insert Blank Page address page affects the cost estimate. It stops short of mapping each individual parameter, which the schema already handles well.

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?

The description names a specific verb (renders/checks/estimates/returns token) and resource (letter campaign preview), and clearly separates it from the sibling preview tool (spur_preview_letter_template) and the downstream action (spur_send_letters). An agent can identify this as the mandatory pre-send rendering step without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states an explicit precondition ('Required step before mailing letters') and an explicit sequence: show the preview, get user approval, then call spur_send_letters with the token, noting the widget Send button is equivalent. Both when-to-use and the alternative path are spelled out.

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