Skip to main content
Glama

MonoEsim — Travel Connectivity for AI Agents

Universal purchase

purchase
Idempotent

Attempt a purchase for a quote_id from prepare_order using an explicitly selected buyer_mode and payment_method supported by payment_capabilities. stripe_checkout requires human/delegated confirmation, accepted terms, customer email and a customer-paid Stripe link; agent_wallet and stripe_off_session are available only when their offline-sandbox capabilities are enabled and the machine has the necessary authority or balance. This can create an order or start a payment; reuse the SAME idempotency_key on retries and never infer success before verified payment.

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>",
      "buyer_mode": "<buyer_mode>",
      "payment_method": "<payment_method>"
    },
    "name": "purchase"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage for names and texts (default en).
emailNo
quote_idYes
buyer_modeYes
payment_methodYes
terms_acceptedNo
idempotency_keyNo
authorization_idNoRequired for stripe_off_session; from create_card_authorization.
customer_confirmedNo

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.5/5.0
Behavior5/5

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

Annotations already flag the write, open-world and idempotent profile, but the description adds real substance: it discloses the two possible outcomes (creating an order vs. starting a payment), the per-method authorization requirements, the idempotency_key retry contract, and an explicit caution not to infer success before verified payment. That is behavioral context the annotations cannot convey.

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 and prerequisites, then the side-effect and idempotency cautions. It is dense but nearly every clause carries decision-relevant information; splitting the long second sentence would improve scanability.

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 9-parameter, high-stakes payment mutation with no output schema, the description covers the critical risks: side effects, idempotent retries, and success verification. It omits three of the six payment_method values (x402, mpp, b2b_credit) and gives no hint of what is returned, which leaves some agent decisions under-informed.

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 only 22%, so the description has to carry meaning, and it does: it explains buyer_mode/payment_method semantics, ties terms_accepted and customer email to stripe_checkout, and implies customer confirmation. Gaps remain for x402, mpp and b2b_credit, and authorization_id's link to create_card_authorization is only hinted at via "necessary authority".

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 ("attempt a purchase for a quote_id") and anchors it in the pipeline by naming its upstream dependency, prepare_order. The buyer_mode/payment_method selection against payment_capabilities makes it clearly distinguishable from siblings such as create_checkout or prepare_order.

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 preconditions per payment method: stripe_checkout needs human/delegated confirmation, accepted terms, customer email and a customer-paid link; agent_wallet and stripe_off_session need enabled sandbox capabilities plus authority or balance. It stops short of explicitly naming when to prefer a sibling (e.g. create_checkout) instead, so routing guidance is implied rather than stated.

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