Skip to main content
Glama

Product details

kh_product
Read-onlyIdempotent

Get a product's full record with Toman price, discount, shade/size/seller variants, stock, max quantity, rating, brand, categories, attributes, and description. Check a shade's price and stock.

Instructions

Get one product's full record: price and discount (Toman), every shade / size / seller variant with its own price, stock and max quantity, rating, brand, categories, attributes and description.

Use to check a shade's stock and price. Next: kh_reviews, kh_similar.

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": {
      "product": "<product>"
    },
    "name": "kh_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
productYesSlug from a list reply (e.g. 'golden-rose-sheer-bright-lipstick-112222') or numeric id.
full_textNoDo not clip description and how_to_use.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.0
    • changedInput schema / properties / product / description
      Previous value: -"Slug from kh_search / kh_browse (e.g. 'golden-rose-sheer-bright-lipstick-112222') or numeric id."New value: +"Slug from a list reply (e.g. 'golden-rose-sheer-bright-lipstick-112222') or numeric id."
  2. Changed5 schema fields changedv0.2.0
    • addedInput schema / properties / full_text
      Added value: +{
      +  "default": false,
      +  "description": "Do not clip description and how_to_use.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / product / description
      Previous value: -"Product slug from kh_search / kh_browse (e.g. 'golden-rose-sheer-bright-lipstick-112222') or the numeric product id (e.g. '112222')."New value: +"Slug from kh_search / kh_browse (e.g. 'golden-rose-sheer-bright-lipstick-112222') or numeric id."
    • removedInput schema / properties / product / title
      Removed value: -"Product"
    • removedInput schema / title
      Removed value: -"kh_productArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "kh_productDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

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, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds useful behavioral context — currency is Toman and each shade/size/seller variant carries its own independent price and stock, so a product is a container of purchasable variants, not a single SKU. It does not mention the default clipping of description/how_to_use (only the schema's full_text parameter hints at it), nor any rate limits or failure behavior.

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?

Two sentences, front-loaded with the verb and the returned payload, with no filler — the long field list earns its space because there is no output schema. The trailing fragment 'Next: kh_reviews, kh_similar' is terse to the point of slight ambiguity, but it is still efficient.

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 no output schema, the description takes on the job of describing return values and does it thoroughly — price, discount, variants, stock, max quantity, rating, brand, categories, attributes, description. The main residual gap is that the default truncation of description/how_to_use (and how full_text overrides it) is left to the schema, so an agent could be surprised by clipped text.

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 both `product` (slug or numeric id, with an example) and `full_text` are already documented in structured form. The description adds no syntax or format detail beyond that; it only reinforces that the result is a complete record when fetched. Baseline 3 applies when the schema carries the parameter burden.

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 opens with a specific verb and resource ('Get one product's full record') and enumerates the payload: price/discount in Toman, per-variant price/stock/max quantity, rating, brand, categories, attributes, description. That is far more concrete than the bare title 'Product details'. It only partially differentiates from siblings — kh_reviews and kh_similar are named as follow-ups, but kh_search (which also surfaces products) is never contrasted.

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?

'Use to check a shade's stock and price' gives a clear triggering context, and 'Next: kh_reviews, kh_similar' routes the agent onward after this call. There is no when-not guidance, no statement that a slug must first come from a list/search reply (that only appears in the schema), and no explicit alternative for product discovery.

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