Skip to main content
Glama

PostalForm

Pay a prepared checkout

complete_checkout

After the buyer approves the prepared order and total, pay its existing checkout session using a compatible Stripe payment token, including a shared payment token (spt_...). Pass the order ID as checkout_session_id; do not resend the document or addresses. On an interrupted request, retry the same checkout and token. Existing authorized, processing, or paid payments are reused; follow the returned status and messages.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
buyerYesBuyer identity details for the approved checkout.
payment_dataYesBuyer-authorized payment token details. Use provider=stripe.
checkout_session_idYesThe checkout session id to finalize.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
buyerYes
linksYes
orderNo
statusYes
totalsYes
currencyYes
messagesYes
line_itemsYes
fulfillment_addressNo
fulfillment_optionsYes
fulfillment_option_idNo

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 already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds real behavioral value: retry the same checkout/token on interruption and reuse of existing authorized/processing/paid payments, which signals idempotent semantics an agent would not otherwise know.

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?

The precondition is front-loaded and each sentence carries distinct information (precondition, token type, parameter mapping, retry, reuse). It is slightly dense but has no redundant filler.

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 payment-finalization tool with nested objects and an output schema already present, the description covers the prerequisite, parameter intent, retry/idempotency, and points to the returned status. Return-value details are correctly left to the output schema; only the sibling relationship with pay_order is unaddressed.

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, but the description adds meaning beyond it: it clarifies that checkout_session_id is the order ID and instructs not to resend the document or addresses, constraining how buyer/payment_data should be populated.

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?

States a specific verb and resource: pay an existing/prepared checkout session after approval, with the payment token. It is clear what the tool does, though it never names or contrasts with the sibling pay_order, so sibling differentiation is left implicit.

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 precondition (buyer has approved the prepared order and total) and explicit do-nots (do not resend the document or addresses), plus retry guidance. It does not explicitly route the agent away from or toward the sibling pay_order, so it stops short of full when/when-not coverage.

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