Skip to main content
Glama

Find product categories

em_categories
Read-onlyIdempotent

Find Emalls category IDs by product words or browse top-level and subcategories to retrieve the category_id needed for em_search.

Instructions

Find Emalls category ids by words, or browse the category tree (top level, then children of a category id).

Use it to get the category_id for em_search when the user names a kind of product ("laptops", "fridges"). With query it returns matching categories plus the site's popular search phrases for those words. Without it, the top-level categories; pass one id as parent_id to see its sub-categories (and brand shortcuts).

Input Schema

NameRequiredDescriptionDefault
queryNoWords to find categories for, e.g. لپ تاپ or یخچال. Leave empty to browse the tree.
parent_idNoList the sub-categories of this category id (from this tool). Empty: top-level categories.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, so the safety profile is covered. The description adds genuinely non-obvious behavior: `query` also returns the site's popular search phrases, and a `parent_id` listing includes brand shortcuts. It stops short of saying how many results come back or how deep the tree goes, so not 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.

Conciseness4/5

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

Front-loaded with the core purpose, then the primary use case, then the mode distinctions. Three sentences with no filler; the final sentence is dense but each clause (top-level, parent_id, brand shortcuts) carries distinct information.

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 does the work of explaining what comes back in each mode, which is the main risk area for this tool. Remaining gaps (result counts, tree depth, whether ids are site-specific) are minor for a two-param read-only lookup.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description adds meaning beyond the schema: it clarifies that `parent_id` values come from this same tool's output and that `query` output carries extra popular-search-phrase data. That extra linkage is useful routing information the schema alone does not convey.

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 (find/browse) and resource (Emalls category ids / category tree), and immediately contrasts the two operating modes. It also names the downstream sibling em_search, making it distinguishable from em_filters, em_product and the rest of the sibling set.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicitly says when to use it: to obtain a `category_id` for em_search when the user names a product kind ("laptops", "fridges"). It also distinguishes the three invocation modes — with `query`, without `query`, and with `parent_id` — so an agent knows exactly which form to call.

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