Skip to main content
Glama

Latest shop prices market-wide

mi_market_prices
Read-onlyIdempotent

List newly posted shop price rows on Mobile.ir, one per shop and model, filtered by brand, shop, province, price range, and update window. Use it to spot recent market offers; for one model's full offers, use the shop prices tool.

Instructions

List the newest price rows that shops posted on Mobile.ir (one row per shop and model), with filters.

For one model's full offer list use mi_shop_prices.

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

Input Schema

NameRequiredDescriptionDefault
daysNoUpdated within this many days (-1 = all).
kindNoProduct class.phone
pageNoPage from 1.
sortNoOrder of the rows.date
brandNoBrand name or id; see mi_options('brands').
shop_idNoShop id, mi_options('shops').
provinceNoProvince id, mi_options('provinces') (1 = Tehran).
max_priceNoToman, highest price.
min_priceNoToman, lowest price.
page_sizeNoRows per page.
descendingNoNewest / most expensive first.
name_containsNoPart of the model name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed20 schema fields changedv0.2.0
    • removedInput schema / properties / brand / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / brand / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / days / description
      Previous value: -"Only prices updated within this many days (-1 = all)."New value: +"Updated within this many days (-1 = all)."
    • changedInput schema / properties / descending / description
      Previous value: -"Descending order (newest or most expensive first)."New value: +"Newest / most expensive first."
    • removedInput schema / properties / max_price / anyOf
      Removed value: -[
      -  {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / max_price / minimum
      Added value: +0
    • addedInput schema / properties / max_price / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • removedInput schema / properties / min_price / anyOf
      Removed value: -[
      -  {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / min_price / minimum
      Added value: +0
    • addedInput schema / properties / min_price / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • removedInput schema / properties / name_contains / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 40,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / name_contains / maxLength
      Added value: +40
    • addedInput schema / properties / name_contains / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / page / description
      Previous value: -"Page number, from 1."New value: +"Page from 1."
    • removedInput schema / properties / province / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / province / description
      Previous value: -"Province id from mi_options('provinces') (1 = Tehran, 5 = Isfahan, 14 = Khorasan Razavi)."New value: +"Province id, mi_options('provinces') (1 = Tehran)."
    • addedInput schema / properties / province / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • removedInput schema / properties / shop_id / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / shop_id / description
      Previous value: -"Only this shop (id from mi_options('shops'))."New value: +"Shop id, mi_options('shops')."
    • addedInput schema / properties / shop_id / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
  2. First observedv0.1.1

TDQS

A4.2/5.0
Behavior4/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 covered and the bar is lower. The description still adds real value beyond them by disclosing the deduplication rule ('one row per shop and model'), which tells the agent results are already collapsed per shop/model. It says nothing about pagination behavior or result ordering beyond what the schema already implies.

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 short sentences, zero filler, with the core scoping statement and the per-shop/per-model granularity front-loaded. The sibling routing sentence follows the main clause rather than competing with it.

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 12-parameter read-only listing tool with fully documented schema and no output schema, the description covers purpose, granularity and sibling routing adequately. The remaining gap is that return shape and paging expectations are left entirely to the schema, which is acceptable but not exhaustive.

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 all 12 parameters carry their own descriptions, enums, defaults and cross-references (mi_options for brand/shop/province), so the schema does the heavy lifting. The description contributes only the generic phrase 'with filters' and does not explain how filters combine or interact with the 'newest' semantics. 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?

The description names a specific verb and resource — 'list the newest price rows that shops posted on Mobile.ir' — and pins down the row granularity as 'one row per shop and model'. That granularity statement alone separates it from a per-model offer dump, so an agent can distinguish it from mi_shop_prices without opening either schema.

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?

It gives an explicit routing rule: use mi_shop_prices when you need one model's full offer list, implying this tool is for market-wide browsing. That is clear context plus one named alternative, but the other price-related siblings (mi_price_history, mi_compare, mi_search) are not addressed, so it falls short of full when/when-not coverage.

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