Skip to main content
Glama

Categories

dr_categories
Read-onlyIdempotent

List Darukade product categories and IDs used for category-filtered searches and price comparisons; find by Persian name or expand subcategories.

Instructions

List Darukade's product categories with the ids that dr_search and dr_cheapest take as category.

No arguments: top-level categories. query finds by name; parent expands one.

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": "dr_categories"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoPersian name part, e.g. ضد آفتاب.
parentNoTop-level category id: list its sub-categories.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.0
    • changedInput schema / properties / parent / description
      Previous value: -"A top-level category id to list its sub-categories."New value: +"Top-level category id: list its sub-categories."
    • changedInput schema / properties / query / description
      Previous value: -"Part of a category name in Persian, e.g. ضد آفتاب, ویتامین."New value: +"Persian name part, e.g. ضد آفتاب."
  2. First observedv0.1.1

TDQS

A4.2/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 call-shape behavior — and it does, by disclosing that a no-argument call returns top-level categories while `parent` expands exactly one level. It leaves unstated whether `query` searches the full hierarchy or only top-level names, and says nothing about result size or pagination.

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?

Two short paragraphs, no filler, and the most decision-relevant fact (which sibling consumes these ids) is front-loaded in the first clause. Each sentence carries a distinct fact — consumer, default scope, and per-parameter behavior.

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 carries the burden of describing results, and it does name the key payload ('the ids'), though it omits that names are presumably returned alongside ids and gives no sense of hierarchy depth beyond one expansion. For a two-optional-parameter lookup tool with full annotation coverage, this is nearly sufficient.

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 100% and the schema already spells out both parameters ('Persian name part, e.g. ضد آفتاب' and 'Top-level category id: list its sub-categories'), so the description's 'query finds by name; parent expands one' largely restates it. The one genuine addition is that the returned ids are the exact values `category` expects in dr_search and dr_cheapest, which is about output rather than the parameters themselves.

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?

States a specific verb and resource ('List Darukade's product categories') and immediately ties the output to the sibling tools that consume it ('the ids that dr_search and dr_cheapest take as `category`'). An agent can distinguish this lookup tool from dr_search or dr_brands without opening either 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?

Effectively tells the agent when to reach for this tool: before calling dr_search or dr_cheapest when a category id is needed, and it explains the default (no arguments = top-level list) plus the two refinement modes. It stops short of explicit exclusions (e.g. 'use dr_brands instead if you need brand ids'), which keeps it off a 5.

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