Skip to main content
Glama

List categories

list_categories
Read-only

Retrieve one level of a marketplace category tree. Omit categoryId for top-level categories; pass an ID for child categories, then use the returned IDs to browse products.

Instructions

One level of a marketplace's category tree. Omit params.categoryId for the top level; pass an id for its children. Ids feed browse_category.

Platforms and the params each accepts (* = required):

  • aliexpress [1 unit]: categoryId

  • amazon [1 unit]: categoryId, region

  • tiktokshop [1 unit]: categoryId, region

  • walmart [1–2 units]: categoryId, region

Costs are in units of $0.001 at list price; a call that fails is not billed.

Input Schema

NameRequiredDescriptionDefault
paramsNoThe platform's other parameters, by the names listed above.
platformYesWhich platform to read.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.4/5.0
Behavior4/5

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

With readOnlyHint and openWorldHint already declared, the description adds useful behavior beyond the annotations: this is a one-level category read, ids feed browse_category, costs are in $0.001 units, and failed calls are not billed. It does not describe return fields or pagination, but the safety profile is already covered by annotations.

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?

The description is front-loaded with purpose and usage, then presents platform-specific parameter support and cost behavior compactly. Every section helps the caller decide and invoke the tool; there is no redundant text.

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?

For a read-only, open-world listing tool with no output schema, the description covers invocation sufficiently: platform selection, categoryId semantics, accepted platform parameters, and billing behavior. It lacks return-shape details such as category fields or pagination, which are the main remaining gap.

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?

The schema has high coverage for top-level parameters, but params is a generic additionalProperties object; the description compensates by listing which parameters each platform accepts and by explaining categoryId omission versus child retrieval. It still leaves region values/types and some requiredness details implicit, and the '* = required' note is not clearly reflected in the listed parameters.

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 states a specific resource and scope: one level of a marketplace's category tree, with top-level versus child behavior controlled by categoryId. It also distinguishes the output's role from browse_category by saying the ids feed that sibling, so an agent can identify which tool to use.

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 gives clear invocation guidance: omit params.categoryId for the top level and pass an id to get children. It also names browse_category as the downstream consumer, but it does not explicitly state when to choose browse_category instead or whether list_platforms should be called first.

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