Skip to main content
Glama
nguthrie
by nguthrie

ucp_checkout_complete

Submit payment to complete a checkout session and finalize a purchase at a UCP-enabled merchant.

Instructions

Complete a checkout session by submitting payment. This finalizes the purchase.

Args: merchant_url: The base URL of the UCP-enabled merchant checkout_id: The ID of the checkout session to complete payment_handler_id: The ID of the payment handler to use (from ucp_discover) card_token: Payment token from the payment provider card_brand: Card brand (e.g., Visa, Mastercard) card_last_digits: Last 4 digits of the card

Returns: Dictionary containing: - checkout_id: The checkout session ID - status: Final status (should be 'complete') - total: Final total charged - order_id: The order ID for tracking - order_url: Permalink to the order

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
merchant_urlYes
checkout_idYes
payment_handler_idNomock_payment_handler
card_tokenNosuccess_token
card_brandNoVisa
card_last_digitsNo4242

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

No annotations are provided, so the description must cover behavioral traits. It states 'finalizes the purchase' (a write operation) and lists returns, but does not disclose idempotency, failure behavior, side effects, or required permissions.

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 description has a clear Args/Returns structure, but it redundantly lists all parameter descriptions which are already explained. Slightly verbose but still well-organized.

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?

Given an output schema exists (context signals confirm), the description adequately covers inputs and returns. However, it lacks details on error handling, idempotency, and edge cases.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage, but the description fully explains each parameter's purpose (e.g., 'merchant_url: The base URL of the UCP-enabled merchant'). This adds substantial meaning beyond the raw schema.

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?

The description clearly states the tool completes a checkout session by submitting payment and finalizing the purchase. It uses a specific verb ('complete') with a clear resource ('checkout session'), and is distinct from sibling tools like create, update, or discover.

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?

The description implies this is the final step in the checkout process but does not explicitly state when to use it versus alternatives (e.g., update or create). No guidance on prerequisites or when not to use.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nguthrie/ucp-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server