Skip to main content
Glama

Current deals and discount codes

kh_deals
Read-onlyIdempotent

Retrieve today's Khanoumi home-page deals sorted by discount descending, including daily pink box offers, other deal rows, and the pop-up campaign's public discount code.

Instructions

List today's home-page deals (daily pink box "جعبه صورتی" and other rows), biggest discount first, plus the public discount code of the pop-up campaign.

A section's tag lists all its products via kh_browse(tag=...); without a tag it has only link.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax deals to return.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.2.0
    • changedInput schema / properties / limit / default
      Previous value: -30New value: +10
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • removedInput schema / title
      Removed value: -"kh_dealsArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "kh_dealsDictOutput",
      -  "type": "object"
      -}New value: +null
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world behavior, so the description does not need to repeat safety traits. It adds useful behavioral detail beyond annotations: results are ordered biggest discount first, the tool includes a pop-up campaign discount code, and section tag semantics affect whether products can be listed directly.

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?

The description is two sentences, front-loads the primary purpose, and uses the second sentence only for an important structural caveat about section tags and links. There is no redundant or filler wording.

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?

For a simple read-only tool with one optional parameter and annotations covering safety semantics, the description is largely complete: it explains what is returned, ordering, and the tag/link caveat. It could say more about the shape of deal entries or pagination, but enough is provided to call the tool correctly.

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%, and the single limit parameter is already documented as 'Max deals to return' with default and bounds. The description adds no additional meaning about limit behavior, so the baseline of 3 is appropriate.

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?

The description states a specific verb and resource: listing today's home-page deals, including the daily pink box and other rows, plus the public discount code. It also distinguishes a key limitation from the sibling kh_browse by explaining that section tags list products via kh_browse(tag=...), while untagged sections only provide a link.

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 implied by phrases like 'today's home-page deals' and 'public discount code,' and the description gives one concrete routing rule to kh_browse for tagged sections. However, it does not explicitly state when to use kh_deals instead of siblings like kh_search or kh_find_cheapest, nor does it provide exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.