Skip to main content
Glama

Check an order

cek_pesanan
Read-onlyIdempotent

Returns an order's status, the next step, payment details, and — once delivered — the eSIM profiles (LPA QR payload, SM-DP+ address, activation code).

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": {
      "nomorPesanan": "<nomorPesanan>",
      "token": "<token>"
    },
    "name": "cek_pesanan"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesAccess token from buat_pesanan (the `t` in the order URL).
bahasaNoLabel language: id (Indonesian, default) or en.
nomorPesananYesOrder number from buat_pesanan.

Output Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds genuinely useful behavior beyond that: the response is conditional, with eSIM profiles (QR payload, SM-DP+ address, activation code) appearing only after delivery. It stops short of anything about invalid tokens/order numbers or error behavior.

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?

A single front-loaded sentence that delivers the return contents in one pass, using a parenthetical to define the eSIM fields without extra prose. Nothing is wasted and nothing essential is buried.

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?

With an output schema present, return values need not be re-explained, and annotations plus a fully described schema cover safety and parameters. The description supplies the one non-obvious behavioral fact — that eSIM data is delivery-gated — leaving only minor gaps such as failure modes for a bad token.

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

Parameters3/5

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

Schema description coverage is 100%, so all three parameters — including the token's provenance and the bahasa enum — are already fully documented in the schema. The description adds no parameter-level meaning, which is acceptable at this coverage level but earns only the baseline.

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 names a specific verb ('Returns') and resource (an order) and enumerates exactly what comes back: status, next step, payment details, and post-delivery eSIM credentials. It is far more precise than the title 'Check an order', though it never explicitly contrasts itself with siblings such as buat_pesanan or cek_perangkat.

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

Usage Guidelines3/5

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

There is no explicit when-to-use or when-not-to-use statement and no named alternative. Usage is only implied: the mention of 'the next step' and eSIM data 'once delivered' suggests this is the follow-up call after an order exists, but the agent must infer that from context rather than being told.

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