Skip to main content
Glama

Best ads for a budget

dv_best_for_budget
Read-onlyIdempotent

Find budget-fitting ads priced below peer medians and surface listings near your price limit, skipping bait titles and implausible prices.

Instructions

Within a budget: the best-value ads (furthest below their peers' median) and the ads closest to the budget.

best_value ads carry deal_score (0-100) and reasons; bait titles and implausible prices are skipped. Property for sale ranks per m2. A closest_to_budget ad already in best_value shows only token and price. Use a narrow query. Next: dv_appraise, dv_post.

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": {
      "budget": "<budget>"
    },
    "name": "dv_best_for_budget"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoتهران
limitNoAds per list.
pagesNo
queryNo
budgetYesMax price in Toman (rent categories: monthly rent).
recentNo
excludeNo
filtersNo
categoryNo
keywordsNo
districtsNo
has_photoNo
min_priceNoToman; monthly rent in rent categories.
brand_modelNo
max_age_hoursNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changedv0.3.0
    • removedInput schema / properties / brand_model / description
      Removed value: -"Vehicles, phones: brand/model, e.g. ['پژو 206']."
    • changedInput schema / properties / budget / description
      Previous value: -"Maximum price in Toman (rent categories: monthly rent), e.g. 1500000000."New value: +"Max price in Toman (rent categories: monthly rent)."
    • removedInput schema / properties / category / description
      Removed value: -"Category slug or Persian name, e.g. 'light' (cars), 'apartment-sell', 'apartment-rent', 'mobile-phones'."
    • removedInput schema / properties / city / description
      Removed value: -"City name or id; several comma-separated, e.g. 'تهران', 'mashhad', 'تهران,کرج'."
    • removedInput schema / properties / districts / description
      Removed value: -"Neighbourhood names or ids in the one city, e.g. ['ونک']."
    • removedInput schema / properties / exclude / description
      Removed value: -"Drop ads whose title has any of these words."
    • removedInput schema / properties / filters / description
      Removed value: -"Other category filters (keys from dv_filters): {'size': {'min': 80, 'max': 120}, 'rooms': ['دو'], 'parking': true}. Unknown keys are returned in `ignored`."
    • removedInput schema / properties / has_photo / description
      Removed value: -"Only ads with photos."
    • removedInput schema / properties / keywords / description
      Removed value: -"Words that must all be in the title."
    • removedInput schema / properties / max_age_hours / description
      Removed value: -"Only ads bumped within this many hours."
    • removedInput schema / properties / pages / description
      Removed value: -"Result pages to merge, about 25 ads each."
    • removedInput schema / properties / query / description
      Removed value: -"Free text in title or description, e.g. 'پراید 111'."
    • removedInput schema / properties / recent / description
      Removed value: -"Published within '3h', '12h', '1d', '3d' or '7d'."
  2. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open world), so the description's job is to add behavior, and it does: it discloses that bait titles and implausible prices are filtered out, that `best_value` items carry `deal_score` (0-100) plus `reasons`, that property-for-sale ranks per m2, and that a `closest_to_budget` ad overlapping `best_value` is returned in abbreviated token+price form. The remaining gap is that nothing is said about pagination cost or latency implied by the `pages` parameter.

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?

The text is short and the two-mode split is front-loaded before the caveats. Some sentences are telegraphic to the point of opacity (e.g. 'Property for sale ranks per m2', 'shows only token and price'), which costs readability without saving much space.

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?

For a 15-parameter tool with no output schema, the description does useful work by describing the shape of the two returned lists and the extra fields on each. It is still incomplete: the majority of the filtering parameters and the defaults (limit 8, pages 3, city Tehran) go unmentioned, so an agent cannot confidently use most of the surface area.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 15 parameters and only 20% schema description coverage, the description needs to carry parameter meaning, but it explains almost none of them. It gestures at `query` ('Use a narrow query') and the required `budget` is already documented in the schema, while `cities`, `districts`, `pages`, `recent`, `exclude`, `filters`, `category`, `keywords`, `brand_model`, `max_age_hours` and `has_photo` are given no semantics at all.

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 names a concrete resource (ads) and a concrete scope (within a budget), and splits the result into two named lists, `best_value` and `closest_to_budget`, with the ranking criterion spelled out (furthest below peers' median vs. closest to budget). It does not explicitly distinguish itself from nearby siblings such as dv_cheapest or dv_find_deals, which is the only thing keeping it from a 5.

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?

There is a terse usage hint ('Use a narrow query') and a downstream workflow pointer ('Next: dv_appraise, dv_post'), which gives the agent some sense of context. However, it never states when to prefer this over dv_cheapest, dv_find_deals or dv_search, nor when not to use it, so selection guidance remains implicit.

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