Skip to main content
Glama
torob-mcp

torob-mcp

by sepehr071

Cheapest offer

tb_cheapest
Read-onlyIdempotent

Searches a product by name, checks every shop's offer, and returns the minimum-price usable option per top match plus the overall minimum-price offer; verify the matched product name.

Instructions

Cheapest trustworthy offer for a product named in words: searches, then looks at every shop's offer.

Gives the best usable offer per top match and the overall cheapest; check the matched name.

Input Schema

NameRequiredDescriptionDefault
cityNoCity id or name: only offers serving that city.
queryYesProduct, e.g. 'ps5 slim'.
conditionNoused = کارکرده / stock.new
min_scoreNoMinimum shop score.
candidatesNoTop search matches to check (one request each).
installment_onlyNoInstallment (قسطی) shops only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.2.0
    • changedInput schema / properties / candidates / description
      Previous value: -"How many top search matches to check (default 3; one request each)."New value: +"Top search matches to check (one request each)."
    • changedInput schema / properties / city / description
      Previous value: -"City id or name (e.g. 'مشهد' or 468): only offers that deliver to / sit in that city."New value: +"City id or name: only offers serving that city."
    • changedInput schema / properties / condition / description
      Previous value: -"new (default), used (کارکرده / stock) or any."New value: +"used = کارکرده / stock."
    • changedInput schema / properties / installment_only / description
      Previous value: -"Only shops offering installments (قسطی)."New value: +"Installment (قسطی) shops only."
    • changedInput schema / properties / min_score / description
      Previous value: -"Only shops with at least this Torob score (default 0)."New value: +"Minimum shop score."
    • changedInput schema / properties / query / description
      Previous value: -"Product to price, e.g. 'آیفون 13 پرو 256' or 'ps5 slim'."New value: +"Product, e.g. 'ps5 slim'."
  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 readOnly, idempotent, open-world, and non-destructive, so the safety profile is covered. The description adds real value beyond that: it discloses the multi-step search-then-check-every-shop behavior and warns that the matched product name may not be exact, which is important for trusting results. It stops short of stating cost/latency implications of checking multiple candidates.

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?

Two short sentences, front-loaded with the purpose, with no filler. The return-shape sentence is slightly compressed ('per top match and the overall `cheapest`'), but nothing is wasted.

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 6-parameter, no-output-schema tool, the description covers purpose, internal search behavior, return shape, and the fuzzy-match caveat. The main remaining gap is that it doesn't quantify that each candidate match costs an extra request, though the schema's candidates description mentions 'one request each'.

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%, so every parameter is already documented, and the baseline is 3. The description reinforces the query semantics ('named in words') and implies the candidates concept via 'top match', but adds nothing about city, condition, min_score, or installment_only beyond what the schema 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?

The description uses a specific verb+resource ('Cheapest trustworthy offer for a product named in words') and explains the internal two-step behavior (search, then inspect every shop's offer). It is clear what the tool returns ('best usable offer per top match and the overall cheapest'), though it doesn't explicitly contrast itself with near-neighbors like tb_offers, tb_best_value, or tb_compare.

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?

Usage is only implied: you supply a product 'named in words' and get the cheapest trustworthy offer. There is no explicit when-to-use vs. when-not, and no sibling is named as an alternative for cases like browsing all offers (tb_offers) or comparing specific products (tb_compare). The 'check the matched name' note is a useful caveat but not routing guidance.

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