Skip to main content
Glama

Search suggestions

dv_suggest
Read-onlyIdempotent

Converts a product name into Divar search suggestions and likely categories, helping you choose the right query and category before searching ads.

Instructions

What Divar's search box would suggest for some text, and which categories the text belongs to.

Use to find category and query from a product name. Next: dv_search.

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": {
      "query": "<query>"
    },
    "name": "dv_suggest"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoتهران
queryYesText as typed in the Divar search box, e.g. 'پراید', 'پژو'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • removedInput schema / properties / city / description
      Removed value: -"City name or id; several comma-separated, e.g. 'تهران', 'mashhad', 'تهران,کرج'."
  2. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/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 that the call is a lookup that yields both suggestions and candidate categories, but says nothing about whether results are ranked, how many come back, or whether category values are ids, slugs or names -- relevant since no output schema exists.

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 outcome and followed by the routing hint; nothing is padded. The phrasing "What Divar's search box would suggest" is slightly indirect compared with a direct verb, but it costs little.

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?

With no output schema, the description should hint at the return shape (e.g., that returned categories are the values to feed into dv_search), and it should cover the locale/city parameter. It gestures at the outputs but leaves parameter and result-shape details incomplete for a two-parameter tool.

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 coverage is only 50%: `query` is documented in the schema, but the `city` parameter and its default (تهران) are never mentioned in the description. The description adds no semantics beyond what the schema text already says about the typed text, so it fails to compensate for the 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 a concrete resource: autocomplete suggestions for typed text plus the categories that text maps to. It also names the downstream tool (dv_search), which helps an agent place it in a workflow. It does not differentiate from the superficially similar dv_parse_query sibling.

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 to find `category` and `query` from a product name" gives a clear triggering condition, and "Next: dv_search" supplies the follow-on step. There is no explicit when-not-to-use guidance or comparison against alternatives like dv_parse_query or dv_categories.

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