Skip to main content
Glama

Pay for an order

pay_order
DestructiveIdempotent

Get the payment details for an order made with create_pickup_order. No wallet is set up in this server, so it pays nothing: for an x402 order it returns the USDC price and pay link for another x402 client to pay; for a card order, the checkout link for the user to pay on.

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": {
      "order_id": "<order_id>"
    },
    "name": "pay_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idYesThe order id create_pickup_order returned, like "ord_7HkQ2mXc9aRt".
shop_urlNoAn agentPickup shop's URL, as find_shops returns it. Defaults to https://agentpickup.app.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / order_id / description
      Added value: +"The order id create_pickup_order returned, like \"ord_7HkQ2mXc9aRt\"."
    • addedInput schema / properties / order_id / maxLength
      Added value: +64
    • addedInput schema / properties / order_id / minLength
      Added value: +1
  2. Changed1 schema field changed
    • addedInput schema / properties / shop_url
      Added value: +{
      +  "description": "An agentPickup shop's URL, as find_shops returns it. Defaults to https://agentpickup.app.",
      +  "type": "string"
      +}
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The description adds substantial behavior beyond the annotations: it discloses that the server holds no wallet, that no payment actually occurs, and that the return branches into a USDC price plus pay link for x402 clients or a checkout link for card orders. That is exactly the kind of side-effect clarification the annotations cannot convey. It stops short of covering what the annotations do declare — idempotency and the destructiveHint=true claim (no money moves, yet the flag is set) — leaving a mild unresolved tension rather than an outright contradiction.

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?

Two tight sentences with zero filler: the order source comes first, then the crucial 'pays nothing' clarification, then the two return branches. Every clause carries information an agent needs.

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?

With no output schema, the description takes on the job of describing returns and does so for both order types, which is the key complexity here. Minor gaps remain around error or already-paid conditions and the shop_url scoping, but nothing essential for a correct call 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 description coverage is 100%, with order_id documented down to an example format and shop_url documented with its default. The description adds no parameter-level meaning and never mentions shop_url or the multi-shop scoping it enables, so the schema carries the full load — baseline 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action — retrieving payment details for an order — and ties it to the create_pickup_order sibling, so the agent knows which orders it applies to. It loses a point because the name and title ('Pay for an order') suggest an execution step, while the description reframes the tool as a details getter; that tension takes an extra read to resolve and no sibling alternative is named.

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

Usage Guidelines3/5

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

It gives a clear precondition (an order created via create_pickup_order) and splits behavior by order type (x402 vs card), which helps the agent interpret the result. However, there is no explicit guidance on when to call this versus order_status or get_pickup_pass, and no statement about what to do if the order is already paid.

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.