Skip to main content
Glama

Current sales

promo_berjalan
Read-onlyIdempotent

Sales running right now (flash sales and discounts), grouped by data/validity, with sale price, normal price, percent saved, start and end time and which destinations they apply to.

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

Input Schema

NameRequiredDescriptionDefault
bahasaNoLabel language: id (Indonesian, default) or en.

Output Schema

NameRequiredDescriptionDefault
promoYes
catatanNo
kodePromoNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedOutput schema / properties / promo / items / properties / hargaIdr / description
      Added value: +"Final price the user pays now, any sale included. Present this as the price."
    • addedOutput schema / properties / promo / items / properties / hargaNormalIdr / description
      Added value: +"Normal price before the sale, shown struck through next to the final price. Not what the user pays."
    • addedOutput schema / properties / promo / items / properties / hematIdr
      Added value: +{
      +  "description": "Saving per eSIM in IDR (normal price minus final price). A saving, never the price.",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / promo / items / properties / hematPersen / description
      Added value: +"Saving versus the normal price, in percent."
    • addedOutput schema / properties / promo / items / properties / labelHarga
      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

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is fully covered. The description adds that results are 'grouped by data/validity' and include destination applicability, which is useful context beyond the annotations, but it says nothing about empty-result behavior, time basis, or whether expired promos appear.

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?

A single front-loaded sentence that identifies the resource first and then enumerates the returned fields. It is dense but every clause adds content; the trailing list of fields is slightly run-on and would read better as a short structured clause.

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?

An output schema exists, so the description does not need to explain return values, and it still summarizes them accurately. With one optional enum parameter, full schema coverage, and complete annotations, there is no material gap an agent needs filled before calling this tool.

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?

There is only one optional parameter (bahasa) and the schema documents it at 100% coverage with an enum and default stated inline. The description adds no meaning about the language parameter, so the baseline 3 applies — the schema carries this entirely.

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 the resource precisely — sales running now, covering flash sales and discounts — and enumerates the fields returned (sale price, normal price, percent saved, start/end time, applicable destinations). That is clearly distinct from siblings like buat_pesanan or hitung_harga, though it never explicitly contrasts itself with any of them.

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?

Usage is only implied by the phrase 'Sales running right now' — an agent can infer this is the tool for checking active promotions, but there is no explicit when-to-use framing, no mention of how it differs from detail_paket or cari_paket, and no statement about what to do when no promotions are active.

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