Skip to main content
Glama

Complete the checkout

complete_checkout
Destructive

Place the order. With payment "paypal" the approved PayPal payment is captured first, and the order only goes through if PayPal confirms the money for the exact total. "mock" skips real payment (testing only).

Input Schema

NameRequiredDescriptionDefault
api_keyNoSandbox key from create_checkout (not needed if the connection already carries one).
paymentNopaypal
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuine value beyond that: the PayPal capture happens before the order, and the order only commits if the exact total is confirmed — a conditional-success behavior an agent cannot infer from annotations.

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 the default paypal path, then the testing escape hatch. 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?

For a 3-param mutation with no output schema and full annotation coverage, the description covers the critical behavior (conditional order placement, payment capture sequencing, mock caveat). It stops short of saying what a successful call yields or what happens on PayPal rejection, but nothing essential to invoking it correctly 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 coverage is 33%, so the description has real work to do; it explains both enum values for "payment" (capture-and-verify vs. test-only mock), which is meaningful added meaning. But the required "session_id" parameter is left entirely unexplained in both schema and description, so compensation is only partial.

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?

"Place the order" gives a concrete verb+resource that reads clearly as the terminal step distinct from create_checkout/cancel_checkout/update_checkout siblings. It never names those siblings explicitly, so differentiation relies on the verb rather than an explicit contrast.

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 implicitly establishes the prerequisite (an approved PayPal payment) and states that "mock" is for testing only, which helps an agent pick a payment mode. However it never says when to call this versus create_checkout or cancel_checkout, nor what to do if the payment is not yet approved.

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.