Skip to main content
Glama

Category filters

dv_filters
Read-onlyIdempotent

Retrieves all supported filters for a Divar category, including keys, types, Persian labels, units, and allowed options, so you can build valid search filters.

Instructions

Every filter a category supports: key, type, Persian label, unit and the allowed options.

Pass keys in dv_search filters: number_range {'size': {'min': 80}}, repeated_string {'rooms': ['دو']}, str 'automatic', boolean true. lazy options: dv_filter_options.

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

Input Schema

NameRequiredDescriptionDefault
cityNoتهران
categoryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.3.0
    • 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', 'تهران,کرج'."
  2. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=true and destructiveHint=false, so the safety profile is covered. The description adds the return fields and examples of filter value shapes, but does not mention pagination, error behavior, or permission requirements.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence states the tool's output clearly and is front-loaded. The remaining text is compressed into cryptic fragments and examples, including an unexplained 'lazy options' clause, which reduces clarity even though the overall length is short.

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 two-parameter read-only lookup with no output schema, the description does convey the returned fields and examples of how filter values are shaped. However, it leaves the city input unexplained and the dv_filter_options relationship ambiguous, so it is only adequately complete.

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?

Schema description coverage is 0%, and the description only alludes to category ('every filter a category supports') while never explaining the city parameter or its default. The filter-value examples describe output usage, not the two input parameters, so compensation for the schema gap is incomplete.

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 the resource (every filter a category supports) and enumerates the returned fields: key, type, Persian label, unit and allowed options. It lacks an explicit verb, and the cryptic reference to dv_filter_options as 'lazy options' does not cleanly differentiate the two sibling tools.

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 implied by the instruction to pass returned keys into dv_search `filters` and by the example value formats. However, it never explicitly says when to call dv_filters instead of dv_filter_options or another filter-related tool, so guidance is only implied.

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