Skip to main content
Glama

Price quote

hitung_harga
Read-onlyIdempotent

Exact price breakdown before ordering, without creating an order: unit price (with any running sale), subtotal for the quantity, promo code check and discount, total to pay, and whether the plan can be ordered in that quantity.

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>"
    },
    "name": "hitung_harga"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailNoOptional: buyer's email, to check per-email code limits.
bahasaNoLabel language: id (Indonesian, default) or en.
jumlahNo
produkYesPlan slug from cari_paket.
kodePromoNoPromo code the user gave you, if any.

Output Schema

NameRequiredDescriptionDefault
namaNo
promoNo
jumlahYes
produkYes
catatanNo
totalIdrYes
kodePromoNo
bisaDipesanYes
hematPersenNoSaving versus the normal price, in percent.
potonganIdrNo
subtotalIdrYes
biayaAdminIdrNo
promoBerakhirNo
hargaSatuanIdrYes
hematSatuanIdrNoSaving per eSIM in IDR (normal price minus final price). A saving, never the price.
labelHargaSatuanNoReady-to-show price line: final price, normal price, saving in % and IDR, and when the sale ends (WIB, UTC+7).
hargaNormalSatuanIdrNoNormal price before the sale, shown struck through next to the final price. Not what the user pays.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedOutput schema / properties / hargaNormalSatuanIdr / description
      Added value: +"Normal price before the sale, shown struck through next to the final price. Not what the user pays."
    • addedOutput schema / properties / hematPersen
      Added value: +{
      +  "description": "Saving versus the normal price, in percent.",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / hematSatuanIdr
      Added value: +{
      +  "description": "Saving per eSIM in IDR (normal price minus final price). A saving, never the price.",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / labelHargaSatuan
      Added value: +{
      +  "description": "Ready-to-show price line: final price, normal price, saving in % and IDR, and when the sale ends (WIB, UTC+7).",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds concrete user-facing context: no order is created, the quote reflects any running sale, promo codes are validated including per-email limits, and orderability at the requested quantity is reported. It omits edge behavior such as what happens with an invalid or expired promo code.

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?

One front-loaded sentence with a clean colon-delimited breakdown of outputs; nothing is padding. Slightly dense, and the enumerated returns partially overlap with what the output schema already provides, but it reads well.

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, full annotations, and 80% parameter coverage, the definition is nearly self-sufficient for a read-only quote tool. The remaining gap is failure handling — invalid promo code, out-of-range quantity, unknown slug — which an agent would have to discover at call time.

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 80%, so the baseline is 3; the description earns an extra point by tying 'jumlah' to a real consequence — whether the plan can actually be ordered in that quantity — and by framing kodePromo as a validation/discount step rather than a plain string. Email's role in per-email code limits is implied but not restated in the description.

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?

Specific verb+resource (price quote / breakdown) with an explicit scope boundary: 'without creating an order', which cleanly separates it from the ordering sibling. The colon-list enumerates exactly what the agent gets back, so the tool's identity is unmistakable.

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?

'Exact price breakdown before ordering' establishes the when-to-use context (pre-purchase price check, prior to buat_pesanan), and the no-order side effect is stated. It does not explicitly name a sibling alternative or say when-not to use it, so it stops short of a 5.

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