Skip to main content
Glama

Shop offers for a product

em_offers
Read-onlyIdempotent

Lists shops selling a given Emalls product with price, city, rating, warranty, and buy link, sorted by price or rating, so users can compare offers and choose where to buy.

Instructions

List the shops selling one Emalls product with price, city, shop rating, warranty and buy link, cheapest first.

Use it to find the cheapest, most trusted or nearest offer. buy_url is a click-through link: open it only if the user wants to buy. total_shops = shops with a live price before filters.

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

Input Schema

NameRequiredDescriptionDefault
cityNoCity or province in Persian, e.g. تهران.
sortNoprice: cheapest first; rating: best shops first.price
limitNoMax offers.
product_idYesArgument is `product_id` (not `id`): the `id` of an em_search result.
pickup_onlyNoOnly shops offering in-person purchase (خرید حضوری).
established_onlyNoOnly established shops (با‌سابقه).

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. Changed6 schema fields changedv0.2.0
    • changedInput schema / properties / city / description
      Previous value: -"Only shops in this city or province, in Persian, e.g. تهران."New value: +"City or province in Persian, e.g. تهران."
    • changedInput schema / properties / established_only / description
      Previous value: -"Only shops the site marks as established (فروشگاه‌های با‌سابقه)."New value: +"Only established shops (با‌سابقه)."
    • changedInput schema / properties / limit / description
      Previous value: -"Max offers to return (1-50)."New value: +"Max offers."
    • changedInput schema / properties / pickup_only / description
      Previous value: -"Only shops with the site's in-person purchase option (خرید حضوری: visit the shop and take the goods)."New value: +"Only shops offering in-person purchase (خرید حضوری)."
    • 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 / sort / description
      Previous value: -"price (cheapest first) or rating (best shops first)."New value: +"price: cheapest first; rating: best shops first."
  3. First observedv0.1.1

TDQS

A4/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 genuinely new behavior: buy_url is a click-through that should only be opened when the user intends to buy, and total_shops counts shops with a live price before filters are applied — a subtle semantic an agent would otherwise get wrong.

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?

Three short sentences, front-loaded with purpose, then usage, then two high-value caveats about buy_url and total_shops. No filler and no repetition of schema content beyond a brief ordering note.

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 usefully names the returned fields and explains total_shops, which is exactly the kind of return-value context needed here. Minor gaps remain around whether total_shops can exceed limit or how the list is truncated, but nothing essential to correct invocation is missing.

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%, so every parameter (city, sort, limit, product_id, pickup_only, established_only) is already documented, including the enum meanings and the product_id-not-id warning. The description's 'cheapest first' merely restates the sort default and adds no syntax or format detail beyond the schema, so 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?

Opens with a specific verb+resource: 'List the shops selling one Emalls product,' and enumerates the returned fields (price, city, shop rating, warranty, buy link) plus the default ordering. It does not explicitly contrast with siblings like em_product or em_shop, so an agent must infer that this is the per-product offer list rather than a shop profile.

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?

'Use it to find the cheapest, most trusted or nearest offer' gives a clear use context that maps to the sort and city parameters. There are no explicit exclusions or named alternatives (e.g., when to use em_product instead), which keeps it below a 5.

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