Skip to main content
Glama

Prepare the exact payable total

hip_prepare_payment
Idempotent

Step 1 of paying on your own, with no person at a checkout page: call it after hip_quote and before hip_complete_payment. Resolve the EXACT amount HIP will charge, before any payment authorization is obtained or spent. This does NOT charge anything. Returns subtotal_cents, tax_cents, total_cents, currency, a pricing fingerprint and the authorization types HIP accepts. Tax is calculated by Stripe from the destination, so hip_quote alone is not the payable amount. The returned total is bound to this job's documents, options and recipient: change any of them and payment is refused with QUOTE_STALE until you prepare again. Use this when paying autonomously with a delegated payment authorization; a human paying in a browser does not need it. Commits the job to the autonomous payment rail.

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_prepare_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
buyer_emailNooptional: the buyer's email address. Have It Printed sends its order confirmation there once the payment succeeds.
address_confirmedNooptional, no longer needed: accepted for compatibility and ignored.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / buyer_email / format
      Added value: +"email"
    • 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. Changed1 schema field changed
    • changedInput schema / properties / address_confirmed / description
      Previous value: -"optional: true only after ADDRESS_UNVERIFIED, when the person confirms the recipient's address is right as it is (Have It Printed checks it again after payment and holds it for a person before anything prints)."New value: +"optional, no longer needed: accepted for compatibility and ignored."
  3. Changed1 schema field changed
    • addedInput schema / properties / address_confirmed
      Added value: +{
      +  "description": "optional: true only after ADDRESS_UNVERIFIED, when the person confirms the recipient's address is right as it is (Have It Printed checks it again after payment and holds it for a person before anything prints).",
      +  "type": "boolean"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / buyer_email
      Added value: +{
      +  "description": "optional: the buyer's email address. Have It Printed sends its order confirmation there once the payment succeeds.",
      +  "type": "string"
      +}
  5. Added
  6. Removed
  7. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Goes well beyond annotations by disclosing the QUOTE_STALE refusal when documents, options, or recipient change, and by clarifying that no charge or authorization occurs. However, it states 'Commits the job to the autonomous payment rail' without saying what that commitment costs or how it is undone, and the tension between readOnlyHint=false and 'does NOT charge anything' is resolved by prose rather than by a declared reversible/irreversible state.

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 step placement and the core promise, and nearly every sentence carries a distinct rule. The opening clause ('with no person at a checkout page') is slightly padded but is the only real slack.

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?

Covers workflow position, side-effect profile, staleness failure mode, and when to skip it, while the output schema already documents the returned fields and annotations cover idempotency and destructiveness. Nothing needed to call this correctly is missing.

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 coverage is 100%, so job_handle, buyer_email, and the ignored address_confirmed flag are already documented in the schema. The description adds no field-level meaning beyond noting that the resulting total is bound to the job's documents, options, and recipient. Baseline 3 applies when the schema does the heavy lifting.

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 object: resolve the EXACT amount HIP will charge and return the pricing fields. It explicitly distinguishes itself from hip_quote ('hip_quote alone is not the payable amount') and from hip_complete_payment, so an agent can tell the three apart 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 ordering ('after hip_quote and before hip_complete_payment') plus a clear when-not: 'a human paying in a browser does not need it.' It also names the prerequisite context (delegated payment authorization) that selects this path over hip_create_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