Skip to main content
Glama

MonoEsim — Travel Connectivity for AI Agents

Create checkout for the customer

create_checkout
Idempotent

Create a pending customer-paid Stripe Checkout from a quote_id returned by prepare_order, only after the customer explicitly approved the displayed plan and price and accepted the terms. Requires the customer's email and customer_confirmed=true, terms_accepted=true; returns a checkout URL, NOT a paid eSIM, and fulfilment starts only after verified payment. Reuse one idempotency_key per intended purchase, including retries, to avoid duplicate orders; use purchase for other supported payment methods. With a sandbox key (mak_test_…) the checkout is a Stripe TEST checkout (test cards, no real money) and get_order returns a TEST eSIM that cannot be installed (test_mode=true).

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": {
      "quote_id": "<quote_id>",
      "email": "<email>",
      "customer_confirmed": "<customer_confirmed>",
      "terms_accepted": "<terms_accepted>"
    },
    "name": "create_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage for names and texts (default en).
emailYesCustomer email; the eSIM and receipt are sent there.
quote_idYesFrom prepare_order.
terms_acceptedYestrue only if the customer accepted immediate delivery and the loss of the withdrawal right.
idempotency_keyNoUnique per purchase (MCP). REST: send the Idempotency-Key header instead.
customer_confirmedYestrue only if the customer explicitly confirmed this purchase.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / lang / enum
      Previous value: -[
      -  "en",
      -  "de",
      -  "ru",
      -  "uk",
      -  "pl",
      -  "nl",
      -  "it",
      -  "es",
      -  "fr",
      -  "tr"
      -]New value: +[
      +  "en",
      +  "de",
      +  "ru",
      +  "uk",
      +  "pl",
      +  "nl",
      +  "it",
      +  "es",
      +  "fr",
      +  "tr",
      +  "pt",
      +  "ro",
      +  "cs",
      +  "sv",
      +  "sk"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / lang / enum
      Previous value: -[
      -  "en",
      -  "de",
      -  "ru",
      -  "uk",
      -  "pl",
      -  "nl",
      -  "it",
      -  "es",
      -  "fr",
      -  "tr",
      -  "pt",
      -  "ro",
      -  "cs",
      -  "sv",
      -  "sk"
      -]New value: +[
      +  "en",
      +  "de",
      +  "ru",
      +  "uk",
      +  "pl",
      +  "nl",
      +  "it",
      +  "es",
      +  "fr",
      +  "tr"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / lang / enum
      Previous value: -[
      -  "en",
      -  "de",
      -  "ru",
      -  "uk",
      -  "pl",
      -  "nl",
      -  "it",
      -  "es",
      -  "fr",
      -  "tr"
      -]New value: +[
      +  "en",
      +  "de",
      +  "ru",
      +  "uk",
      +  "pl",
      +  "nl",
      +  "it",
      +  "es",
      +  "fr",
      +  "tr",
      +  "pt",
      +  "ro",
      +  "cs",
      +  "sv",
      +  "sk"
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / lang / enum
      Previous value: -[
      -  "en",
      -  "de",
      -  "ru",
      -  "uk",
      -  "pl",
      -  "nl"
      -]New value: +[
      +  "en",
      +  "de",
      +  "ru",
      +  "uk",
      +  "pl",
      +  "nl",
      +  "it",
      +  "es",
      +  "fr",
      +  "tr"
      +]
  5. Changed1 schema field changed
    • changedInput schema / properties / lang / enum
      Previous value: -[
      -  "en",
      -  "de",
      -  "ru",
      -  "uk"
      -]New value: +[
      +  "en",
      +  "de",
      +  "ru",
      +  "uk",
      +  "pl",
      +  "nl"
      +]
  6. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond annotations, it discloses that this creates a pending checkout rather than a paid eSIM, that fulfilment starts only after verified payment, and that sandbox keys produce a Stripe TEST checkout and a non-installable TEST eSIM. These are important behavioral details that annotations alone do not convey.

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 dense but front-loaded, stating the core action and constraints first, then the return behavior, alternative tool, and sandbox caveat. Every sentence carries operational value and there is no filler.

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?

Although there is no output schema, the description explains the key return value (checkout URL), downstream fulfilment timing, and sandbox/test-mode behavior. Combined with rich annotations and full schema coverage, it gives an agent enough context to invoke the tool 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 100%, so the schema already documents all parameters. The description adds meaningful semantics by tying quote_id to prepare_order, emphasizing that customer_confirmed and terms_accepted must be true only under specific customer actions, and explaining idempotency_key reuse across retries to avoid duplicate orders.

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 states a specific verb and resource: create a pending customer-paid Stripe Checkout from a quote_id. It explicitly distinguishes this from prepare_order (quote source) and purchase (other payment methods), and clarifies that the result is a checkout URL, not a paid eSIM.

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?

It gives explicit prerequisites: only after the customer approved the displayed plan and price, accepted terms, and with customer_confirmed=true and terms_accepted=true. It names the alternative tool purchase for other supported payment methods and advises reusing one idempotency_key per intended purchase, including retries.

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