Skip to main content
Glama

aliexpress_category_ids

Read-only

Discover AliExpress WEB category ids from the category breadcrumbs its own product cards carry: pass q (free-text keywords) to discover the web categories of matching products, or category_id (a web category id from a /category//.html URL) to inspect one category listing -- pass exactly one. Each result carries category_id, parent_id, level, leaf, product_hits and the full observed path. These are the ids aliexpress_category_products and aliexpress_search's cat_id accept; they are NOT the platform/taxonomy ids aliexpress_categories returns. A parent category listing contains products from its descendants, so inspecting a category reveals child ids, and each path names an id's ancestors: walk the tree from a keyword or any category id instead of guessing ids. page is 1-indexed (1-60) and defaults to 1.

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

Input Schema

NameRequiredDescriptionDefault
qNoOptional. Free-text search keywords whose result cards' web category ids are returned, e.g. 'wireless earbuds'. Pass exactly one of q or category_id.
pageNoOptional. 1-indexed listing page to inspect, defaults to 1. Each page carries up to 60 products and therefore several category paths.
category_idNoOptional. AliExpress web category id (the number in a /category/<id>/<slug>.html URL) whose listing is inspected. A parent category lists products from its descendants, so its cards reveal child ids. Pass exactly one of q or category_id.

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover read-only and open-world behavior, but the description adds genuine context beyond them: parent listings include descendant products, so inspecting a category reveals child ids, and each path names an id's ancestors. It also documents the per-result fields and the page bound. It does not discuss rate limits or result staleness, which is a minor gap for a live-search tool.

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?

The definition is front-loaded with the core purpose and ends with the page mechanics, so the important parts come first. It is a dense single paragraph with mild redundancy — 'pass exactly one' appears in both the description and every parameter's schema text — but no sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers the id-namespace distinction, the two input modes, the tree-walking strategy, and the pagination constraints, which is everything needed to call this correctly against a complex category-discovery task. Return values are partly enumerated even though an output schema exists, so nothing essential is missing.

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 is 3, but the description adds the explicit page range (1-60) and 1-indexing that the schema only implies, plus the semantics of what q and category_id each return. The mutual-exclusivity rule is repeated from the schema rather than added, keeping it below a 5.

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 — discover AliExpress WEB category ids from product-card breadcrumbs — and explicitly contrasts them with the platform/taxonomy ids that aliexpress_categories returns. An agent can distinguish this tool from its siblings without opening any schema.

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?

Gives concrete routing rules: pass exactly one of q or category_id, use q for free-text discovery, use category_id when you have a /category/<id>/<slug>.html URL, and walk the tree rather than guessing ids. It also names the downstream tools (aliexpress_category_products, aliexpress_search's cat_id) that consume the output, which tells the agent why to call it.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.