Skip to main content
Glama

execute_checkout

Destructive

Execute checkout for a cart to create an order. Requires a buyer delegation token (from user auth) and a shipping address. The order is created UNPAID (status "pending"). IMPORTANT — do NOT stop here or just hand the user the payment_url. Immediately continue the in-chat payment flow: call get_payment_methods for the returned order_id, present the available channels to the buyer, and ask which they want to use; then drive initiate_payment → (submit_payment_otp if needed) → poll get_payment_status until the order is paid. The payment_url in the response is only a manual fallback if the buyer declines in-chat payment. Always offer to collect payment in the chat first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
notesNoOptional order notes
cart_idYesCart ID to checkout
site_idYesRegistered site ID
customer_nameYesFull name of the customer placing the order
shipping_cityYesShipping city
shipping_nameYesRecipient full name
customer_emailYesEmail address of the customer placing the order
customer_phoneYesCustomer contact / billing phone number (E.164 preferred, e.g. +233201234567)
shipping_line1YesShipping address line 1 (street)
shipping_line2NoShipping address line 2 (apt/suite) [optional]
shipping_phoneNoRecipient phone for the shipping address (E.164 preferred); defaults to customer_phone if omitted
shipping_stateYesShipping state or province
shipping_countryYesISO 3166-1 alpha-2 country code (e.g., "US", "GB")
shipping_postal_codeYesShipping postal code
buyer_delegation_tokenYesDelegation token from buyer (OAuth-like flow)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsNo
totalNo
statusNo
order_idNo
created_atNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already indicate destructiveHint=true and readOnlyHint=false. The description adds crucial behavioral details: the order is created UNPAID (status 'pending'), and the payment_url is a manual fallback. It also discloses that the agent must drive the subsequent payment flow, not stop here. This goes beyond annotations, providing complete transparency about side effects and required follow-up actions.

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 description is efficiently structured: the first sentence states purpose and key effect, the second lists requirements, and the rest is a clear, imperative note about the continuation flow. Every sentence serves a distinct, useful purpose. Despite length, it is front-loaded and easy to parse, with no wasted words.

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 the tool's complexity (15 params, 12 required), the description covers the essentials: what it does, key requirements, and the critical follow-up steps. An output schema exists, so return values are handled. The description is complete enough for an agent to use the tool correctly, though it could mention error scenarios or prerequisites like a valid, non-empty cart.

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%, so the input schema already documents all parameters with descriptions. The description adds modest context: it mentions that buyer_delegation_token comes from user auth and that a shipping address is required, but does not elaborate on individual parameter formatting or usage beyond what the schema provides. The baseline of 3 is appropriate; the description adds some value but is not essential for understanding parameters.

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's purpose: 'Execute checkout for a cart to create an order.' It specifies the action (checkout), resource (cart), and result (order). The title annotation 'Place order (checkout)' reinforces this. While sibling 'quick_checkout' exists, the description distinguishes by detailing requirements (delegation token, shipping address) and the unpaid state of the order. This provides sufficient clarity for selecting the tool.

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

Usage Guidelines5/5

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

The description explicitly states preconditions: 'Requires a buyer delegation token (from user auth) and a shipping address.' It includes an IMPORTANT block that instructs the agent not to stop after checkout, but instead to continue the in-chat payment flow with specific next steps (get_payment_methods, initiate_payment, etc.). It even explains when to use the manual payment_url fallback. This is exceptionally clear guidance on when and how to use the tool vs. alternatives.

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.

TDQS

A4.2/5.0
Disambiguation5/5

Each tool targets a distinct action or resource, with detailed descriptions that clearly differentiate cart management, checkout flow, payment steps, delegation, orders, and product operations. Potential overlaps like get_active_cart vs. get_cart are resolved by their specific use cases.

Naming Consistency5/5

All tools use a consistent verb_noun_snake_case pattern (e.g., add_to_cart, set_shipping_address). There are no mixing of conventions like camelCase or inconsistent verb styles.

Tool Count4/5

26 tools is on the higher side but appropriate for a comprehensive e-commerce server covering product discovery, cart management, checkout, payment, orders, and reviews. Could potentially be streamlined slightly, but still reasonable.

Completeness5/5

The tool set covers the full e-commerce lifecycle: site listing, product search/compare/reviews, cart CRUD, coupon application, shipping, checkout, payment with delegation and OTP, order retrieval, and back-in-stock alerts. No obvious gaps for typical buyer workflows.