Skip to main content
Glama

Price history of a product

em_price_history
Read-onlyIdempotent

Track an Emalls product's average price over about three months in ~3-day steps to determine whether its price is rising or falling, with optional shop series and summary.

Instructions

Get the price history of one Emalls product: the average price over time in about 3-day steps (last ~3 months).

Use it for "is the price rising or falling". Dates are Jalali, oldest first, aligned with the price lists; null = no price that day. summary compares first and last average.

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_id": "<product_id>"
    },
    "name": "em_price_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
shop_idNoAdd this shop's own series (id from em_offers).
product_idYesArgument is `product_id` (not `id`): the `id` of an em_search result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.1
    • changedInput schema / properties / product_id / description
      Previous value: -"Product id from em_search."New value: +"Argument is `product_id` (not `id`): the `id` of an em_search result."
  2. Changed2 schema fields changedv0.2.0
    • changedInput schema / properties / product_id / description
      Previous value: -"Emalls product id from em_search, e.g. 26506037."New value: +"Product id from em_search."
    • changedInput schema / properties / shop_id / description
      Previous value: -"Also return this shop's own price series (shop id from em_offers)."New value: +"Add this shop's own series (id from em_offers)."
  3. First observedv0.1.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds real behavioral detail: sampling granularity (~3-day steps), time horizon (~3 months), Jalali date format, oldest-first ordering, and null meaning 'no price that day'. It also explains what the `summary` field does, which matters because there is no output schema.

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?

Four short sentences, front-loaded with the core purpose and scope before the formatting caveats. Dense but every sentence carries information; the trailing `summary` note is slightly cryptic out of context but still earns its place.

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 appropriately covers return shape (dates, ordering, ordering alignment, null semantics, summary comparison). Minor gaps remain: whether shop_id changes the averaged series or adds a parallel one, and the price unit/currency, are left unstated.

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 coverage is 100% and both parameters are already documented there, including the product_id vs id pitfall and the shop_id source (em_offers). The description names neither parameter and adds no semantics beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource ('Get the price history of one Emalls product') and scopes it precisely to average price in ~3-day steps over ~3 months. It implicitly separates itself from offer/search siblings by naming the historical series, but never explicitly contrasts itself with a sibling like em_offers or em_product.

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?

Gives an explicit use case ('Use it for "is the price rising or falling"'), which tells the agent the intended question this tool answers. It stops short of stating when NOT to use it or which sibling to pick for raw per-shop prices, though 'aligned with the price lists' hints at that boundary.

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