Skip to main content
Glama

Add a written document

hip_add_text_document

Typeset text you wrote with the person into a printed document (for a letter in a handwriting-style font, use hip_set_letter; for a file the person already has, use hip_get_upload_target). Needs a job_handle from hip_create_job. Add a letter or document whose text you wrote with the person. Have It Printed typesets it on US Letter paper in a clean serif font, in black and white, and counts its pages. Plain text only: separate paragraphs with a blank line; no images, tables or formatting. Call once per document. Returns the added document and its page count; next choose how it is mailed (hip_update_job) or get the price (hip_quote).

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>",
      "title": "<title>",
      "text": "<text>"
    },
    "name": "hip_add_text_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesthe full text to print, exactly as it should read
titleYesa short name for the document; it names the file and is not printed
copiesNocopies (default 1)
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.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 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}$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare write/idempotent/destructive flags; the description adds substantive behavior: US Letter paper, black-and-white clean serif output, automatic page counting, plain-text-only input restrictions, and a once-per-document constraint that explains the non-idempotent nature. Nothing here contradicts the annotations.

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 key differentiation and prerequisites, and every clause carries routing or format information. It loses a point for mild redundancy, restating the 'text you wrote with the person' idea twice in the opening two sentences.

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?

Given an output schema exists, the description need not detail return values, yet it briefly notes the added document and page count and points to the next steps. Combined with the format constraints and prerequisite, an agent has everything needed to invoke 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?

The description goes beyond the schema (which already covers all four parameters at 100%) by explaining the text format contract: plain text only, blank line between paragraphs, no images, tables or formatting. It also clarifies that title names the file and is not printed, reinforcing the schema. It does not describe copies behavior, which keeps it from a 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 ('typeset text ... into a printed document') and explicitly distinguishes itself from two siblings: hip_set_letter for handwriting-font letters and hip_get_upload_target for files the person already has. An agent can route correctly without opening any other 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?

Names the prerequisite (job_handle from hip_create_job), the alternatives and the condition that selects each, the constraint to call once per document, and the follow-up choices (hip_update_job to choose mailing, hip_quote for price). This is explicit when/when-not/next-step guidance.

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