Skip to main content
Glama

Make a test checkout

test_checkout

Makes a Stripe test-mode checkout of the shop's products as they are on the branch now, and answers its address for you to hand to the person: they open it, pay with Stripe's test card 4242 4242 4242 4242 (any future date, any CVC), and come back to Xodia. Test mode only, whatever the shop's mode: no money moves, and the order shows in list_orders with mode test. lines (optional): product ids from get_shop or the Products collection, with option and quantity (default 1); or productId for one of a product. With neither, it uses one of the first product for sale; on a site with the donations feature and no products, it starts a test donation instead (no product needed). A membership (a product billed every month or year) makes a subscription test checkout and must be alone. Needs Stripe connected (the owner's step) and a currency: otherwise it answers shop_not_connected or shop_not_ready, and you tell the owner the step from get_shop. shop_test_unavailable (409) means test orders aren't available on this Xodia yet: don't call it again; tell the owner in plain words that to check the shop they turn on Take real payments in the Shop card (paid plans), place one small real order and refund it in Stripe. Never open the address yourself or pay with it.

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": {
      "projectId": "<projectId>"
    },
    "name": "test_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesNoOptional: { productId, option?, quantity? } lines; default one of the first product for sale. A membership (a product billed every month or year) goes alone
productIdNoShortcut for one of this product (its id), instead of lines
projectIdYesProject id from list_projects

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false, openWorldHint=true, destructiveHint=false. The description adds substantial context beyond that: no money moves despite being a write, orders appear in list_orders with mode test, the required Stripe/currency preconditions, the specific error codes and their meanings, and a hard operator instruction never to open or pay the returned address.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Content is largely load-bearing, but it is delivered as one long run-on paragraph mixing the happy path, defaults, error codes and operator warnings, which makes it harder to scan. Front-loading the core action is good; the middle would benefit from separation or bullets.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter mutation tool with no output schema, the description covers what is returned (an address), the side effects (order visible in list_orders as test mode), preconditions, and every documented failure mode with a prescribed next step. Nothing an agent needs to call it correctly or recover from failure is missing.

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 100%, so the baseline is 3; the description still adds real meaning by explaining the lines/productId relationship, the implicit default when neither is supplied, quantity defaulting to 1, and the membership-must-be-alone constraint. It stops short of explaining the option field's shape, which the schema already covers.

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?

States a specific verb and resource ('Makes a Stripe test-mode checkout of the shop's products'), plus the branch/scoping condition and the fact that it returns an address to hand to a person. It also names the sibling where the resulting order appears (list_orders), so an agent can distinguish it from read-side shop tools.

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?

Explicitly covers when to use it and the branches: lines vs productId vs neither (defaults to one of the first product for sale, or a test donation on donation sites), and the rule that a membership product must be alone. It also gives precise recovery instructions for shop_not_connected, shop_not_ready and shop_test_unavailable (409), including 'don't call it again' and what to tell the owner.

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