Skip to main content
Glama

Read one shelf: children, brands, filters and a deals rail

get_category
Read-onlyIdempotent

Narrow towards a purchase without inventing keywords. One call returns children[] and childrenDeep[] with estimated counts, brands[] each with an engineParam you can pass straight back to search_products.engineParam, the shop's own facets[], aspectTiles[], siblings[], related[] and a deals[] rail. GET /api/agent/browse/tree/, or GET /api/agent/browse/tree// for any category under a department. No wallet and no signature. contentAt is when those deal prices were read. Counts are estimates and countScope says so. A shelf already read answers from cache; a cold one costs one call against the catalogue quota shared with shoppers, so read the shelf you want rather than walking the tree.

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": {
      "slug": "<slug>"
    },
    "name": "get_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesThe `slug` field of a department from list_categories.
nodeIdNoA category id under that department, from children[].id or childrenDeep[].id. Omit for the department itself.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive/openWorld annotations, it adds substantial operational context: no wallet or signature required, cache-hit vs cold-call behavior, one cold read costing quota shared with shoppers, and that counts are estimates qualified by countScope and that contentAt is when deal prices were read. That is exactly the extra context annotations cannot carry.

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 purpose is front-loaded and each sentence carries information (return shape, endpoints, auth, cache/quota, estimate caveats). It is dense and the middle sentence is a long enumerated run-on, but there is no filler or repetition worth cutting.

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?

With no output schema, the description compensates by enumerating the return payload, and it covers the remaining agent needs: auth (no wallet/signature), cost model (cache vs quota), data-quality caveats (estimated counts, countScope, contentAt) and how to chain results into search_products. Nothing essential for a correct call is missing.

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 documents both slug (from list_categories) and nodeId (from children[].id or childrenDeep[].id, omit for the department). The description only restates the nodeId path variant, adding little syntax or semantics the schema does not already provide, 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?

The description opens with a specific action ('Narrow towards a purchase without inventing keywords') and then enumerates exactly what one call returns: children[], childrenDeep[], brands[] with engineParam, facets[], aspectTiles[], siblings[], related[] and a deals[] rail. It also names the concrete endpoints (GET /api/agent/browse/tree/<slug> and the /<nodeId> variant), so it is clearly distinguishable from list_categories and search_products.

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 a clear context ('narrow towards a purchase without inventing keywords') and routes the agent: read the shelf you want rather than walking the tree, and pass brands[].engineParam back into search_products.engineParam. It stops short of explicitly stating when to prefer search_products or list_categories instead, so no full when/when-not/alternatives matrix.

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.

Resources