Skip to main content
Glama

Browse categories

dv_categories
Read-onlyIdempotent

Retrieve Divar category slugs, Persian names, paths, and leaf status by browsing the category tree, filtering by name or parent for search tools.

Instructions

The Divar category tree (236 nodes, up to 4 levels): slug, Persian name, path and whether it is a leaf.

Gives the category slug for the search tools (light = cars and vans). Next: dv_filters.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "dv_categories"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryNoPart of a category name or slug, Persian or Latin: 'موبایل', 'apartment'.
parentNoList the children of this slug, e.g. 'vehicles'. Omit for the 10 top-level categories.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.3.0
    • removedInput schema / properties / limit / description
      Removed value: -"Max categories to return."
    • changedInput schema / properties / parent / description
      Previous value: -"List the direct children of this category slug, e.g. 'vehicles' or 'real-estate'. Omit for the 10 top-level categories."New value: +"List the children of this slug, e.g. 'vehicles'. Omit for the 10 top-level categories."
  2. First observedv0.1.0

TDQS

A3.9/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 genuine context beyond that — the tree's size and depth — but omits the practically important behavior that the default `limit` of 30 truncates a 236-node tree, which an agent needs to know to avoid believing it has the full set.

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 compact paragraphs with the identity and shape of the resource front-loaded, followed by the downstream use and next step. The telegraphic final fragment ('Next: dv_filters.') is efficient rather than wasteful, though it reads slightly clipped.

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?

With no output schema, the description usefully enumerates the returned fields, and it explains the hierarchy and the top-level default, which covers the main complexity of a three-parameter browse tool. The one real gap is pagination/truncation behavior under the default limit, which is left entirely to the schema's bare integer.

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 coverage is 67%: `query` and `parent` are documented in the schema (including the top-level omission rule), while `limit` has no description at all. The description's only parameter-relevant contribution is the 'light' = cars and vans example, which helps agents choose query terms but does not compensate for the undocumented limit.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the exact resource ('The Divar category tree'), its scale (236 nodes, up to 4 levels), and the four fields returned (slug, Persian name, path, leaf). It also gives a concrete anchor example ('light' = cars and vans), so an agent can distinguish this reference-tree tool from siblings like dv_filters or dv_cities without opening a schema.

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 states the downstream purpose clearly: 'Gives the `category` slug for the search tools', and routes forward with 'Next: dv_filters.' What is missing is any when-not guidance — no mention of dv_suggest or dv_parse_query as alternatives for agents that already have a free-text query.

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