Skip to main content
Glama

Search used-phone ads

mi_used_search
Read-onlyIdempotent

Search Mobile.ir used and new phone, tablet, and smartwatch ads by brand, price, condition, city, and date; open matching ads for details.

Instructions

Search the used and new phone ads that users post on Mobile.ir (price, condition, city, description).

price_note holds non-numeric prices ('توافقی' = negotiable). Open one ad with mi_used_ad.

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_used_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoUpdated within this many days (-1 = all).
kindNoProduct class.phone
pageNoPage from 1 (40 per page).
sortNoUnpriced ads sort cheapest; set min_price to skip them.date
brandNoBrand name or id; see mi_options('brands').
provinceNoProvince id, mi_options('provinces') (1 = Tehran).
conditionNoSealed new or used.any
max_priceNoToman; unpriced ads dropped.
min_priceNoToman, lowest price.
descendingNoNewest / most expensive first.
with_photosNoOnly ads with photos.
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: -"Ads updated within this many days (-1 = all)."New value: +"Updated within this many days (-1 = all)."
    • changedInput schema / properties / descending / description
      Previous value: -"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"
      -  }
      -]
    • changedInput schema / properties / max_price / description
      Previous value: -"Toman, highest price (ads without a price are dropped)."New value: +"Toman; unpriced ads dropped."
    • 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"
      -  }
      -]
    • changedInput schema / properties / name_contains / description
      Previous value: -"Part of the model name, e.g. 'iphone 15'."New value: +"Part of the model name."
    • 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 (40 ads per page)."New value: +"Page from 1 (40 per page)."
    • 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"
      +]
    • changedInput schema / properties / sort / description
      Previous value: -"Order of the ads. Unpriced ads sort as the cheapest: set min_price with sort=price to skip them."New value: +"Unpriced ads sort cheapest; set min_price to skip them."
  2. First observedv0.1.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint and destructiveHint=false, so safety is covered structurally. The description adds genuinely new behavioral context: that `price_note` carries non-numeric prices such as 'توافقی' (negotiable), which an agent would otherwise mis-handle when sorting or filtering by price.

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 with zero filler: the scope sentence comes first, then the caveat about non-numeric prices and the pointer to mi_used_ad. Nothing is redundant with the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 12 optional parameters and no output schema, the description should say more about what a result row contains and how paging terminates. It explains only one returned field (`price_note`) and leaves the rest of the response shape and result-set size 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 description coverage is 100%, including enum values, defaults and units (Toman), so the schema already carries the parameter burden. The description adds no parameter-specific meaning beyond the schema, only the `price_note` field note, which concerns output rather than inputs — 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?

The description gives a concrete verb plus resource ('Search the used and new phone ads that users post on Mobile.ir') and lists the salient ad attributes, so the agent knows exactly what corpus is being queried. It distinguishes itself from mi_used_ad (single-ad lookup) but not from the similarly named mi_search or mi_find, leaving some sibling ambiguity.

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 follow-up routing to mi_used_ad for opening a single ad is explicit and useful. However, there is no guidance on when to pick this tool over mi_search or mi_find, nor any note about pagination exhaustion or when the result set is better served by another sibling.

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