Skip to main content
Glama

Product details

kh_product
Read-onlyIdempotent

Retrieve a product's complete record: price, discount, variant stock, rating, brand, and attributes. Use after search to check shade availability and cost.

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, category path, attributes (skin / hair type, key ingredients, texture, country) and the description.

Use after kh_search / kh_browse when the user picks a product, or to check that the shade they want is in stock and what it costs. Reviews: kh_reviews. Alternatives: kh_similar. Fees for the order total: kh_store_info.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
productYesProduct slug from kh_search / kh_browse (e.g. 'golden-rose-sheer-bright-lipstick-112222') or the numeric product id (e.g. '112222').

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is fully covered by structured data. The description adds depth about the record's granularity (per-shade/size/seller variant pricing and max quantity), but says nothing about authentication needs, rate limits, or behavior on a missing/ambiguous slug. Adequate but not rich beyond annotations.

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?

Front-loaded with the payload contents, then usage, then sibling routing — a sensible order. The field enumeration is long, and since an output schema exists it partly restates the return shape, but every listed field is genuinely useful for deciding whether to call this tool.

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 annotations covering safety, a 100%-documented single parameter, and an output schema handling return values, the description only needs to establish purpose and routing — which it does. The remaining gap is minor: no guidance on failure modes (invalid slug, product not found).

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 parameter is fully documented there (slug pattern plus numeric id example, including the sibling tools it comes from). The tool description adds no syntax or format detail beyond that, so baseline 3 applies.

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 ('Get one product's full record') plus an enumerated content list: price/discount in Toman, per-variant price/stock/max quantity, rating, brand, category path, attributes, description. This is clearly distinguishable from kh_search (list-level) and kh_reviews (review-level) without opening any schema.

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

Usage Guidelines5/5

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

Explicit trigger ('Use after kh_search / kh_browse when the user picks a product, or to check that the shade they want is in stock and what it costs') plus direct routing for adjacent needs: kh_reviews for reviews, kh_similar for alternatives, kh_store_info for order-total fees. Nothing is left to inference.

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