Skip to main content
Glama

Write a letter in a handwriting-style font

hip_set_letter
Idempotent

Use this for a letter in a handwriting-style font; for a typeset document use hip_add_text_document, and for a file the person has use hip_get_upload_target. Needs a job_handle from hip_create_job (a new job, no documents) and choices from hip_get_catalog. Write a letter on a job from hip_create_job, printed in a handwriting-style font, optionally on a stationery design: the letter type, the font, the message, the greeting and sign-off, the name it is signed with, and how it is mailed (flat and tracked, a First-Class letter of up to 5 pages, or a Certified letter). Have It Printed checks it as its website does (fit, names, the design's own words), counts the pages, and returns the price and a preview picture of page 1. This only edits the job's draft before checkout: calling it again updates this draft (the previous draft text is not kept), the person sees and approves the letter before paying, and nothing is printed, mailed or charged until the person pays on haveitprinted.com. Never include an address: the person enters the mailing address at checkout. Then call hip_create_checkout: the person pays on haveitprinted.com.

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": {
      "job_handle": "<job_handle>",
      "message": "<message>"
    },
    "name": "hip_set_letter"
  }
}

Input Schema

NameRequiredDescriptionDefault
fontNoa font from hip_get_catalog
colorNoprint in color (default false: one ink)
fieldsNooptional: a stationery design's or a card-style letter type's own words, by the keys hip_get_catalog lists (never an address)
mailingNotracked_document (default): flat in a rigid mailer with a tracking number. basic_letter: folded, First-Class, no tracking, up to 5 pages. certified_letter: the same by Certified Mail, with tracking
messageYesthe body of the letter, as it should read; separate paragraphs with a blank line. The greeting and sign-off are printed from greeting/greeting_name/signoff
signoffNooptional: e.g. With love,
greetingNooptional: the opening word, e.g. Dear
job_handleYesthe job_handle that hip_create_job returned (job_ followed by 32 hex characters). Only the API key that created the job can use it.
stationeryNooptional: a stationery design from hip_get_catalog for this letter type
letter_typeNoa letter type from hip_get_catalog (default: a plain letter)
sender_nameNothe name the letter is signed with
greeting_nameNooptional: the name in the greeting, e.g. Mom (not an address)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / job_handle / description
      Added value: +"the job_handle that hip_create_job returned (job_ followed by 32 hex characters). Only the API key that created the job can use it."
    • addedInput schema / properties / job_handle / examples
      Added value: +[
      +  "job_0123456789abcdef0123456789abcdef"
      +]
    • addedInput schema / properties / job_handle / pattern
      Added value: +"^job_[0-9a-f]{32}$"
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations it discloses the draft-only nature of the call, that re-invoking overwrites the previous draft text without keeping it, that validation mirrors the website's own checks, that the person reviews and approves before paying, and that nothing is printed, mailed, or charged until payment on haveitprinted.com. It also notes the return payload (price plus a page-1 preview image), which the annotations alone do not convey.

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?

Front-loaded with the routing decision and the prerequisites before the behavioral detail, which is the right order. The central sentence is long and stacks many clauses, and the payment timing is stated twice ('nothing is ... charged until the person pays' and 'the person pays on haveitprinted.com'), which is mild redundancy but not enough to obscure the content.

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 12-parameter mutation tool with a nested fields object, the definition covers prerequisites, draft semantics, validation behavior, the no-address constraint, review/approval before payment, and the next tool to call. An output schema exists, and the description still summarizes the key return values (price, page-1 preview), leaving no material gap for an agent calling it correctly.

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, but the description adds real meaning by naming the concept set the parameters map to (letter type, font, message, greeting, sign-off, signed name, mailing method) and spelling out the three mailing modes in prose, including the 5-page cap on First-Class. It adds only marginally beyond the already-detailed schema descriptions, so it stops short of 5.

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 ('write a letter ... in a handwriting-style font ... on a job from hip_create_job') and immediately names the two siblings it is not: hip_add_text_document for typeset documents and hip_get_upload_target for a file the person already has. An agent can route between the three 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?

Gives explicit when-to-use and when-not-to-use rules plus prerequisites (a fresh job_handle from hip_create_job with no documents, choices from hip_get_catalog) and the required follow-up step (hip_create_checkout). It also states a hard exclusion: never include an address, because the person enters it at checkout.

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