Skip to main content
Glama

Pay and send to print

hip_complete_payment
Destructive

Step 2 of paying on your own: call it right after hip_prepare_payment. Pay for the job with a delegated payment authorization, with no browser and no human step. payment_authorization must be a Stripe shared payment token (spt_...) granted to Have It Printed whose maximum is at least the total from hip_prepare_payment; HIP charges exactly that total and never more. NEVER send a card number, expiry, CVV or any reusable credential to this tool. If the cardholder's bank requires authentication, this returns payment_status=requires_user_action rather than bypassing it. Then use hip_get_order for printing, shipping and tracking.

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>",
      "payment_authorization": "<payment_authorization>"
    },
    "name": "hip_complete_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.
tos_acceptedNotrue only when the person paying has agreed to the Terms of Service (https://haveitprinted.com/terms.html) and content policy (https://haveitprinted.com/content-policy.html). Recorded on the order.
payment_authorizationYesopaque delegated payment token (spt_...)

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. Changed1 schema field changed
    • addedInput schema / properties / tos_accepted
      Added value: +{
      +  "description": "true only when the person paying has agreed to the Terms of Service (https://haveitprinted.com/terms.html) and content policy (https://haveitprinted.com/content-policy.html). Recorded on the order.",
      +  "type": "boolean"
      +}
  3. Added
  4. Removed
  5. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: the token must be an spt_ granted to Have It Printed with a maximum at least the prepared total, HIP charges exactly that total, no card data may be sent, and bank authentication returns requires_user_action. The main omission is an explicit warning not to retry, which matters because annotations mark the operation as destructive and non-idempotent.

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?

The workflow step is front-loaded, followed by token requirements, security constraints, authentication behavior, and next steps. Every sentence carries operational relevance and there is no redundant wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive payment tool, the description covers sequencing, token semantics, charge bounds, credential safety, authentication fallback, and the next tool to call; output-schema handling covers return details. The only notable gap is reinforcing the non-idempotent retry risk, and it does not explicitly compare itself with alternative checkout tools.

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 already 100%, so the baseline is 3. The description still adds meaningful constraints for payment_authorization beyond the schema's opaque spt_ token description, notably the required grant recipient and maximum-total condition.

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 payment action and its exact place in the workflow: step 2 immediately after hip_prepare_payment. The distinction from hip_prepare_payment and hip_get_order is explicit, so an agent can select it without ambiguity.

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

Usage Guidelines4/5

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

Gives a clear prerequisite (call right after hip_prepare_payment) and a clear follow-up (use hip_get_order). It does not explicitly contrast with hip_create_checkout or other checkout flows, though 'paying on your own' implies a direct-payment path.

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