Skip to main content
Glama

Nowacell

UCP Checkout Create

create_checkout

Create a checkout session through the shared UCP checkout capability. The payload parameter is a JSON object matching the UCP checkout.create request. "line_items" is always required, even when empty. To convert an existing cart into a checkout send "cart_id" together with "line_items": [] and the cart is reused as-is; send line_items to start from scratch instead. "discounts": {"codes": [...]}, "fulfillment" and "buyer_consent" are also accepted even though the published request schema omits them. Always use dryRun=true (the default) to validate the request without persisting it, then set dryRun=false to commit.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNo
payloadNo

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?

With no annotations, the description carries the full burden and does substantial work: it discloses that line_items is required even when empty, that dryRun defaults to true and validates without persisting, and that dryRun=false commits a mutation. It also flags that discounts, fulfillment and buyer_consent are accepted despite being absent from the published request schema. It does not cover auth requirements, error behavior, or checkout lifetime.

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?

Front-loaded with the core action, then the required-field rule, then the cart-reuse branch, then the dryRun workflow. Sentences are dense but each carries a distinct rule; the only mild clutter is the parenthetical default restated for dryRun.

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, the description covers the critical decision points: required fields, cart-vs-scratch branching, undocumented accepted keys, and the safe dry-run-then-commit pattern. Return values and failure modes are unaddressed, but the agent has enough to call it correctly.

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 0% and the schema itself is thin (payload typed as object with a default of []), so the description must compensate and largely does: it names the accepted payload keys (line_items, cart_id, discounts.codes, fulfillment, buyer_consent) and explains dryRun's default and effect. It still defers the full payload shape to an external "UCP checkout.create request" reference, leaving nested structure undocumented.

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 ("Create a checkout session") and scopes it to the UCP checkout capability. It implicitly separates itself from cart operations by explaining that an existing cart can be converted via cart_id, but it never names create_cart or complete_checkout as the alternative, so sibling differentiation is inferred rather than stated.

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 concrete conditional guidance: send cart_id with an empty line_items to reuse a cart, or send line_items to start from scratch. It also prescribes a two-step workflow (validate with dryRun=true, then commit with dryRun=false). What's missing is guidance on when to use this versus create_cart or complete_checkout.

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