Skip to main content
Glama

Set documents and recipient

hip_update_job
Idempotent

Set what a document job holds and how it is mailed: the documents uploaded with hip_get_upload_target (files replaces the whole list, so keep any added with hip_add_text_document), copies and color, the mailing option (product), the US recipient and options such as a return address. Use it after hip_create_job and the uploads; a letter or postcard written with hip_set_letter or hip_set_postcard carries its own options and takes no hip_update_job. Price fields are rejected: the server computes all amounts. Returns the updated job; call hip_quote next.

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>"
    },
    "name": "hip_update_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNothe job's full list of documents, each uploaded first with hip_get_upload_target. It replaces the list already on the job; list each document once.
optionsNooptional job settings. product: how the job is mailed (the same as the product field). return_address: the US return address printed on the envelope, with name or company, line1, line2, city, state and zip; leave it out to use Have It Printed care of the buyer.
productNohow the job is mailed. tracked_document (the default): printed and mailed flat in a rigid mailer with a free tracking number. basic_letter: up to 5 pages, one copy of each document, folded into a standard envelope and mailed First-Class, with no tracking. certified_letter: the same letter sent by Certified Mail, with a tracking number. hip_get_service_info has the prices.
recipientNoUS mailing address
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. Changed20 schema fields changed
    • addedInput schema / properties / files / description
      Added value: +"the job's full list of documents, each uploaded first with hip_get_upload_target. It replaces the list already on the job; list each document once."
    • addedInput schema / properties / files / items / description
      Added value: +"one document on the job"
    • addedInput schema / properties / files / items / properties / color / description
      Added value: +"bw: black & white (the default); color: full color"
    • addedInput schema / properties / files / items / properties / filename / description
      Added value: +"the filename given to hip_get_upload_target"
    • addedInput schema / properties / files / items / properties / pages / description
      Added value: +"your page count for this document. The price uses Have It Printed's own count of the uploaded file."
    • addedInput schema / properties / files / items / properties / quantity / description
      Added value: +"copies of this document (default 1)"
    • addedInput schema / properties / files / items / properties / size / description
      Added value: +"paper size: US Letter (8.5x11) only; may be left out"
    • 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}$"
    • addedInput schema / properties / options / description
      Added value: +"optional job settings. product: how the job is mailed (the same as the product field). return_address: the US return address printed on the envelope, with name or company, line1, line2, city, state and zip; leave it out to use Have It Printed care of the buyer."
    • addedInput schema / properties / options / properties
      Added value: +{
      +  "product": {
      +    "description": "how the job is mailed; the product field does the same",
      +    "enum": [
      +      "tracked_document",
      +      "basic_letter",
      +      "certified_letter"
      +    ],
      +    "type": "string"
      +  },
      +  "return_address": {
      +    "additionalProperties": true,
      +    "description": "optional: the envelope's US return address: name or company, line1, line2, city, state (2 letters) and zip",
      +    "type": "object"
      +  }
      +}
    • addedInput schema / properties / recipient / properties / city / description
      Added value: +"city"
    • addedInput schema / properties / recipient / properties / country / description
      Added value: +"US (the default); only US addresses are mailed"
    • addedInput schema / properties / recipient / properties / line1 / description
      Added value: +"street address, e.g. 123 Main St"
    • addedInput schema / properties / recipient / properties / line2 / description
      Added value: +"optional: apartment, suite or unit"
    • addedInput schema / properties / recipient / properties / name / description
      Added value: +"the person or business the mail is addressed to"
    • addedInput schema / properties / recipient / properties / zip / description
      Added value: +"5-digit US ZIP code or ZIP+4"
    • addedInput schema / properties / recipient / properties / zip / pattern
      Added value: +"^\\d{5}(-\\d{4})?$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / product
      Added value: +{
      +  "description": "how the job is mailed. tracked_document (the default): printed and mailed flat in a rigid mailer with a free tracking number. basic_letter: up to 5 pages, one copy of each document, folded into a standard envelope and mailed First-Class, with no tracking. certified_letter: the same letter sent by Certified Mail, with a tracking number. hip_get_service_info has the prices.",
      +  "enum": [
      +    "tracked_document",
      +    "basic_letter",
      +    "certified_letter"
      +  ],
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / files / items / properties / size / enum
      Previous value: -[
      -  "8.5x11",
      -  "8x10",
      -  "11x17"
      -]New value: +[
      +  "8.5x11"
      +]
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, but the description adds the crucial detail beyond them: 'files replaces the whole list', warning that entries added via hip_add_text_document are dropped unless re-listed. It also discloses a validated constraint not in the schema's structure ('Price fields are rejected: the server computes all amounts') and states the return value ('Returns the updated job').

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?

Three dense sentences that front-load the action, then sequencing, then validation rules – no filler. It is somewhat packed with nested parentheticals, which makes it slower to scan than it could be, but each clause carries distinct information.

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 five-parameter mutation tool with nested objects, an output schema, and full annotation coverage, the description supplies everything left open: prerequisite chain, replacement semantics, sibling exclusion, price-field rejection, and the correct follow-up call. Nothing an agent needs in order to invoke it 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, and the description earns a step up by explaining cross-tool semantics the schema cannot: the full-replacement behavior of files and its interaction with hip_add_text_document, plus the overlap between the top-level product field and options.product ('the product field does the same'). It does not restate per-field formats, 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?

States a specific verb and resource ('Set what a document job holds and how it is mailed') and enumerates the settable facets: documents, copies/color, product, recipient, return address. It also names the siblings it is not for (hip_set_letter, hip_set_postcard) and the tools it depends on (hip_get_upload_target, hip_add_text_document), so an agent can place it precisely in the workflow.

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 an explicit ordering rule ('Use it after hip_create_job and the uploads'), an explicit exclusion ('a letter or postcard written with hip_set_letter or hip_set_postcard ... takes no hip_update_job'), and an explicit next step ('call hip_quote next'). When-to-use, when-not-to-use, and the follow-up are all present.

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