Skip to main content
Glama
VTEX MCP Server

VTEX MCP Server

by Volve-Tech

vtex_get_category_tree

Retrieves a store's category tree, including all catalog levels or up to a specified level, to inspect category hierarchy for catalog operations.

Instructions

[GET] Get category tree | Category: Category | Path: /api/catalog_system/pub/category/tree/:categoryLevels | Description: Retrieves the category tree of your store. Get all the category levels registered in the Catalog or define the level up to which you want to get. > 📘 Onboarding guide > > Check the new [Catalog | Path params: categoryLevels

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "categoryLevels": "<categoryLevels>"
    },
    "name": "vtex_get_category_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
categoryLevelsYesPath parameter: categoryLevels

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden; the '[GET]' prefix and '/pub/' path signal a read-only public endpoint, which is useful. It also conveys the hierarchical return semantics (levels registered vs. up-to-a-level). It says nothing about authentication, rate limits, or whether categoryLevels changes the response shape.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The key sentence is front-loaded and clear, but the definition is padded with metadata boilerplate ('[GET]', 'Category: Category', 'Path: /api/...') and ends in a truncated, dangling fragment ('> 📘 Onboarding guide > > Check the new [Catalog'), which reads as broken text rather than information.

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

Completeness3/5

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

For a single-parameter read tool with no annotations and no output schema, the description covers what is fetched and how depth is controlled. However, the truncated onboarding/link text and the absence of any return-structure or auth context leave it only minimally complete.

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 documents the single parameter only as 'Path parameter: categoryLevels', which is tautological, so the description does the real work by explaining that the parameter controls the depth of levels returned and that omitting depth yields all levels. That is genuine meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb and resource ('Retrieves the category tree of your store') and scopes it to all category levels or a chosen depth. That distinguishes it reasonably well from siblings like vtex_get_category_by_id, which fetch a single category, though the differentiation is implicit rather than stated.

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

Usage Guidelines3/5

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

It explains the two usage modes ('Get all the category levels registered in the Catalog or define the level up to which you want to get'), which implies when each value of categoryLevels is appropriate. It gives no explicit guidance on when to prefer this over sibling tools such as vtex_get_category_by_id or the specifications-tree tools, and no prerequisites are mentioned.

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

Deploy Server

Other Tools