Skip to main content
Glama

Price history of a phone

mi_price_history
Read-onlyIdempotent

Retrieve a phone's shop-price history from Mobile.ir, including per-shop first, last, min, and max prices and daily lowest price in Toman to track market trends.

Instructions

Get a phone's shop-price history from Mobile.ir: per-shop first/last/min/max and the daily lowest price in Toman.

Shops quote different variants: use the daily lowest as the market trend.

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": {
      "id": "<id>"
    },
    "name": "mi_price_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesProduct id from mi_search/mi_find, e.g. 41113.
periodNoHow far back.month
shop_idNoOnly this shop (id from mi_shop_prices).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.2.0
    • changedInput schema / properties / id / description
      Previous value: -"Product id from mi_search, mi_find or mi_market_prices, e.g. 41113."New value: +"Product id from mi_search/mi_find, e.g. 41113."
    • removedInput schema / properties / shop_id / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / shop_id / description
      Previous value: -"Only this shop (shop_id from mi_shop_prices); default all shops."New value: +"Only this shop (id from mi_shop_prices)."
    • addedInput schema / properties / shop_id / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
  2. First observedv0.1.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds real context beyond that: the upstream source, the currency unit (Toman), the shape of the aggregate returned, and the caveat that shops quote different variants so the daily low is the reliable trend signal. It stops short of noting history availability limits or behavior when no data exists for the period.

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?

Two tight sentences, front-loaded with what the tool returns, followed by the one interpretive caveat an agent actually needs. Nothing is padded or repeated from the schema.

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 3-parameter read tool with no output schema and full annotation coverage, the description conveys return contents, units, source and interpretation guidance. Only minor gaps remain, such as behavior for products with no recorded history or whether results respect the period boundary for the per-shop min/max.

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%, with id, period (enum, default month) and shop_id all documented inline, so the baseline is 3. The description adds only the currency unit and the source, not extra meaning for period or shop_id beyond what the schema already states.

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 a phone's shop-price history') plus the data source (Mobile.ir) and the exact returned measures (per-shop first/last/min/max, daily lowest, in Toman). It is clearly a historical-price tool, distinguishable in spirit from mi_shop_prices or mi_market_prices, but it never explicitly names those siblings to cement the distinction.

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?

The second sentence ('Shops quote different variants: use the daily lowest as the market trend') gives guidance on how to interpret the output, which is useful. However, there is no explicit when-to-use/when-not guidance and no routing versus siblings such as mi_shop_prices (current per-shop) or mi_market_prices, so the agent must infer the choice.

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