Skip to main content
Glama

WB Catalog Categories

wb_categories
Read-onlyIdempotent

Browse the Wildberries catalog tree to discover categories and subcategories before searching. Start at the top level, then expand the branch you need using each node's shard and query selectors.

Instructions

Browse the Wildberries catalog tree.

Use this to discover what exists before searching: wb_search needs a query string, but a shopper's question is often "what categories of humidifiers are there?". Each node carries WB's own shard and query selectors, which are the addressing needed to pull a category feed.

The live menu is ~800 KB, so responses are always a bounded slice — start at 'top', then expand the branch you care about.

Full field list and error codes: guide://wb/wb_categories.

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

Input Schema

NameRequiredDescriptionDefault
rootNo'top' for the top-level sections, or a category name / URL path / id to expand (e.g. 'Электроника', '/catalog/elektronika', '8126').top
max_depthNoHow many levels below the root to include. 1 = direct children only.

Output Schema

NameRequiredDescriptionDefault
metaNo
rootNo
itemsNo
host_usedNo
max_depthNo
truncatedNo
total_returnedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.1

TDQS

A4.4/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, openWorld), so the description correctly spends its words elsewhere: it discloses that the live menu is ~800 KB and that responses are therefore always a bounded slice, which is behavior an agent cannot infer from the annotations. It also notes each node carries WB's own `shard` and `query` selectors, hinting at how results are consumed downstream. It stops short of describing slice size limits or pagination/truncation signaling, which is the remaining gap.

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 one-line purpose, then rationale, then the size constraint and traversal advice, then a docs pointer — a sensible ordering. The framing sentence about shoppers' questions is slightly discursive for a tool description but it earns its place by motivating the pre-search use case.

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?

An output schema exists, so return values need not be explained, and the description points to `guide://wb/wb_categories` for the full field list and error codes. For a two-parameter, read-only browse tool, everything an agent needs to call it correctly and interpret the bounded response is present.

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 'top' versus a category name, URL path, or id, as well as what max_depth means at each level. The description reinforces the intended traversal order ('start at top, then expand') but adds no syntax or edge-case detail beyond the schema, so the baseline 3 applies.

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 ('Browse the Wildberries catalog tree') and immediately distinguishes it from the sibling `wb_search`, which requires a query string. An agent can tell which of the two to reach for without inspecting 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 Guidelines5/5

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

Gives explicit when-to-use guidance ('discover what exists before searching') with the reason (a shopper's question is often category-shaped, not query-shaped), and names the alternative `wb_search` plus its precondition. It also prescribes a traversal strategy: start at 'top', then expand the branch you care about.

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