Skip to main content
Glama

Ferrite Supply

reconcile_order

Idempotent

Ask Stripe whether the payment for an order has completed. Use it when a buyer has come back from Stripe's payment page and the order is not marked paid yet. Returns the order as it now stands. It is refused with stripe_not_configured where the operator has not set up Stripe.

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>",
      "session_id": "<session_id>",
      "manage_token": "<manage_token>"
    },
    "name": "reconcile_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idYesthe order id
session_idYesthe Checkout Session id Stripe returned the buyer with
manage_tokenYesthe manage token place_guest_order returned for this order; it can also be sent as the x-order-token header

Output Schema

NameRequiredDescriptionDefault
idYesThe order id (FS-… for a customer, FG-… for a guest).
guestYesWhether a guest placed it.
itemsYesThe lines.
couponNoThe coupon applied, if any.
statusYesplaced | checkout_open | payment_pending | paid | fulfilled | shipped | delivered | cancelled | expired | refunded.
deliveryYesA UK delivery address.
created_msYesWhen it was placed (epoch ms).
updated_msYesWhen it last changed (epoch ms).
user_emailYesThe contact email.
total_penceYesThe total the customer pays, in pence.
checkout_urlNoThe hosted checkout URL, once checkout opened.
refund_stateNoThe refund state Stripe reported, once refunded.
discount_penceYesThe discount in pence.
shipping_penceYesThe delivery charge in pence.
stock_reservedYesWhether stock is still reserved against this order.
subtotal_penceYesThe subtotal in pence.
shipping_choiceYesstandard | express.
tracking_numberNoThe tracking number, once shipped.
tracking_carrierNoThe carrier, once shipped.
stripe_session_idNoThe Stripe Checkout Session id, once checkout opened.
confirmation_emailNoThe confirmation-email outbox entry, created at payment.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, idempotentHint=true and openWorldHint=false; the description usefully adds that it returns the order as it now stands and that it fails with a specific `stripe_not_configured` error when Stripe is not set up. It does not spell out what happens when Stripe reports an unpaid session, but the error-mode disclosure goes meaningfully beyond the annotations. The openWorldHint=false annotation is arguably loose for a tool that calls a third party, but the description does not contradict it.

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?

Three short sentences, front-loaded with the core action, then trigger condition, then return value and error case. No filler or repetition.

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?

An output schema exists, annotations cover the safety/idempotency profile, and all params are documented, so the description only needs to add trigger context and failure behavior, which it does. Minor gaps remain around the not-yet-paid outcome and prerequisites, preventing a 5.

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 each of the three parameters documented, including the alternative x-order-token header for manage_token. The description adds no additional meaning about parameter formats, so the schema carries the load and a baseline 3 applies.

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 and resource: query Stripe about whether an order's payment has completed, and returns the order's current state. It implicitly separates itself from the read-only get_order by framing this as the Stripe-side verification step, though it never names a sibling tool explicitly.

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?

The when-to-use condition is concrete and actionable: a buyer has returned from Stripe's payment page and the order is still not marked paid. There is no explicit when-not guidance or named alternative (e.g. use get_order for already-settled orders), so it stops short of a 5.

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