Skip to main content
Glama

Bafan

Prepare online payment order

prepare_order
Idempotent

Prepare an order for online payment. Returns the summary, payment status, next_step and a checkout_url where the shopper reviews and pays on bafan.sk.

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": "prepare_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressNoContact and delivery address entered by the shopper. Use the two-letter country code.
cart_keyNoGuest carts only; omit it when the account is connected. Private tool input. Copy the key from an earlier tool result, the cart_key query parameter of a payment link, or the last segment of a /shop/mcp-checkout/ link already in the chat. Keep it out of shopper replies.
address_idNo
carrier_idNo
gls_point_idNo
payment_method_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare non-read-only, idempotent, non-destructive, closed-world behavior, so the bar is lower. The description usefully discloses the return payload (summary, payment status, next_step, checkout_url), but it never states that calling it creates a pending order/checkout session, that no charge occurs until the shopper pays, or that it is safe to retry.

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?

Two compact sentences with the action stated first and the return/shopper-flow information second. There is no filler, and the checkout_url detail is front-loaded where an agent will see it.

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

Completeness3/5

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

For a six-parameter mutation tool with a nested address object and no output schema, the description does cover return values and the shopper hand-off. It leaves the guest/connected account distinction, the optional-but-related IDs, and the fact that nothing is charged yet entirely unexplained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 33%: address and cart_key are documented in the schema, while address_id, carrier_id, gls_point_id and payment_method_id carry no description anywhere. The description adds no parameter meaning at all, so nothing compensates for those four undocumented inputs or explains which combination is required for guest versus connected flows.

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?

The description gives a specific verb and resource ("Prepare an order for online payment") and names the shopper-facing outcome, a checkout_url on bafan.sk. It does not explicitly differentiate itself from nearby siblings such as prepare_cod_order or place_order, so an agent must infer the online-payment angle on its own.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to call this versus prepare_cod_order (cash on delivery) or place_order, and no prerequisites are given. The crucial guest-cart vs connected-account branch is buried in the cart_key schema description rather than surfaced in the tool description.

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