Skip to main content
Glama

Filter options

dv_filter_options
Read-onlyIdempotent

Look up valid Divar filter options—brand/model keys, districts, or option lists—and translate Persian filter text into the keys needed for ad search.

Instructions

Allowed values of a filter: brand and model keys (161 car brands), districts, or any option list.

query turns 'پراید' into the key 'Pride 111'; without it: all brands, or the models of one brand. Pass the keys to dv_search as brand_model / 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": {
      "category": "<category>"
    },
    "name": "dv_filter_options"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoتهران
brandNobrand_model: a brand key, e.g. 'Peugeot', to list its models.
limitNo
queryNoText to look up in the filter, e.g. 'سمند'.
filterNoFilter key from dv_filters, usually 'brand_model' or 'districts'.brand_model
categoryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.3.0
    • changedInput schema / properties / brand / description
      Previous value: -"brand_model only: a brand key (e.g. 'Peugeot') to list its models."New value: +"brand_model: a brand key, e.g. 'Peugeot', to list its models."
    • 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', 'تهران,کرج'."
    • changedInput schema / properties / filter / description
      Previous value: -"Filter key from dv_filters, usually 'brand_model' (cars, phones, ...) or 'districts'."New value: +"Filter key from dv_filters, usually 'brand_model' or 'districts'."
    • removedInput schema / properties / limit / description
      Removed value: -"Max options to return."
    • changedInput schema / properties / query / description
      Previous value: -"Text to look up inside the filter, e.g. 'سمند' or 'ونک'. Without it the whole list (or one brand) is returned."New value: +"Text to look up in the filter, e.g. 'سمند'."
  2. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, open-world behavior; the description adds useful domain context: query normalization, 161 car brands, and how returned keys feed dv_search. It does not describe return format or limit behavior, so it stops short of a 5.

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?

The core purpose is front-loaded and the two short paragraphs contain no redundant restatement of annotations. The examples and routing instruction are dense but efficient.

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?

The description covers the central lookup workflow and output routing, which is the most important context. For a six-parameter tool with no output schema, however, it does not explain the required `category` parameter or the roles of `city` and `limit`, leaving meaningful invocation gaps.

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?

The schema already covers about half of the parameters, and the description adds meaningful semantics for `query`, `brand`, and the default all-brands behavior. However, it leaves the required `category` parameter and the roles of `city` and `limit` unexplained, so it only partly compensates for the remaining coverage gap.

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 states that the tool returns allowed values for a filter and gives concrete categories such as brand/model keys, districts, and option lists, which distinguishes it from dv_filters and dv_search. It lacks an explicit 'list/return' verb, which keeps 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explains that `query` normalizes a Persian car name into a canonical key and that omitting it lists all brands or the models of one brand. It also instructs passing the returned keys to dv_search, giving clear usage context, though it does not explicitly name when not to use this tool.

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