Skip to main content
Glama

Nowacell

UCP Checkout Complete

complete_checkout

Complete a checkout session through the shared UCP checkout capability. This places the order and takes payment. With dryRun=true (the default) nothing is placed: the current checkout is read back and reported together with anything that would block a commit. Set dryRun=false only once the buyer has confirmed the purchase. The payload parameter is a JSON object matching the UCP checkout.complete request; UCP requires a payment object here. It must carry exactly one instrument whose handler_id is a payment handler the business profile advertises for the sales channel. Otherwise no order is placed and the checkout keeps its status with a recoverable payment_failed error.

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": {
      "id": "<id>"
    },
    "name": "complete_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
dryRunNo
payloadNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the call is destructive (order placed, payment taken), that the default is a safe read-back, and the exact failure mode — no order placed, status unchanged, recoverable payment_failed error. Gaps remain on auth/permission needs and idempotency of retries after a payment_failed.

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?

Front-loaded purpose, then the dry-run contract, then the payload precondition, then the failure consequence — a logical order with no filler sentences. Each sentence carries distinct operational information.

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 mutation tool with no annotations, no output schema, and a nested payload, this covers effect, safe default, payload precondition, and error behavior, which is most of what an agent needs before calling it. Missing only are the meaning of 'id', permission requirements, and what a successful commit reports back.

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 description coverage is 0%, so the description must compensate, and it does for two of three parameters: dryRun's default and meaning, and payload's required payment object with exactly one instrument whose handler_id must be advertised by the business profile. The required 'id' parameter is never explained, which is the one remaining hole.

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 names a specific verb and resource ('Complete a checkout session'), states the actual effect ('places the order and takes payment'), and the dry-run split makes it unmistakable versus create_checkout, update_checkout, or get_checkout.

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?

It gives explicit when/when-not guidance for the risky path: dryRun=true is the default no-op, and dryRun=false should only be set 'once the buyer has confirmed the purchase.' It does not name sibling alternatives such as cancel_checkout, but the decision rule for this tool is unambiguous.

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