Skip to main content
Glama

Create an order

buat_pesanan

Creates an order for the user and emails them the order link. Only call this after the user chose the plan and explicitly confirmed this statement: "I have checked: my phone supports eSIM and is not carrier-locked (SIM Lock). I understand this eSIM is for internet only — no phone number, texts, or calls — and cannot be topped up." No money moves yet: the user pays online on their order page at pakeesim.com (payment gateway), and the result has the amount and that link (pembayaran.tautanBayar). Send a kunciIdempotensi so a retried call returns the same order instead of a duplicate. Limited to a few orders per email per 10 minutes.

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": {
      "produk": "<produk>",
      "nama": "<nama>",
      "email": "<email>",
      "setujuKompatibel": "<setujuKompatibel>"
    },
    "name": "buat_pesanan"
  }
}

Input Schema

NameRequiredDescriptionDefault
namaYesBuyer's full name.
emailYesBuyer's email; the order link and QR code are sent here.
bahasaNoLabel language: id (Indonesian, default) or en.
jumlahNoNumber of eSIMs (one per phone).
produkYesPlan slug from cari_paket.
catatanNoOptional note, e.g. departure date.
kodePromoNoOptional promo code the user gave you.
kunciIdempotensiNoOptional unique key for this purchase (e.g. a UUID). Repeating the call with the same key, email and plan returns the same order for 24 hours.
metodePembayaranNoOptional online payment method id from info_checkout. Omit it to use the first listed method.
setujuKompatibelYestrue only if the user confirmed their phone supports eSIM and is not carrier-locked.

Output Schema

NameRequiredDescriptionDefault
esimNo
tokenNo
statusYes
tautanNo
totalIdrYes
diskonIdrNo
expiresAtNo
pembayaranNo
labelStatusNo
orderNumberYes
subtotalIdrNo
langkahBerikutnyaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / metodePembayaran / description
      Previous value: -"Optional payment method id from info_checkout. Omit it to use the first listed method."New value: +"Optional online payment method id from info_checkout. Omit it to use the first listed method."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Adds substantial context beyond annotations: no money moves at creation time, payment happens on pakeesim.com, the result carries the amount and `pembayaran.tautanBayar`, an email is sent, and there is a rate limit of a few orders per email per 10 minutes. The idempotency-key caveat is consistent with idempotentHint=false (the tool is only idempotent when a key is supplied), not a contradiction.

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 action and effect, then gating condition, payment flow, idempotency, and rate limit in a logical order. The long verbatim confirmation quote makes it dense, but it is load-bearing because setujuKompatibel must map to that exact statement.

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 10-parameter creation tool with an output schema and annotations, the description covers the missing pieces an agent needs: preconditions, what is not charged, where payment occurs, the return field holding the payment link, idempotency, and throttling. Nothing essential is left to guesswork.

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 baseline is 3; the description adds value by naming where values come from (produk from cari_paket, metodePembayaran from info_checkout) and by tying setujuKompatibel to the exact confirmation sentence the user must utter. It does not explain jumlah-per-phone or bahasa, but those are already documented in the schema.

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 ("Creates an order") plus the observable side effect ("emails them the order link"), which distinguishes it from cek_pesanan (checking) and cari_paket (plan lookup). An agent can tell what this does without opening the schema.

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?

Gives an explicit, hard precondition: call only after the user chose a plan and explicitly confirmed the quoted eSIM compatibility statement. It also points to sibling tools for required values (produk slug from cari_paket, metodePembayaran from info_checkout), so the ordering of calls is inferable.

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