Skip to main content
Glama

list_categories

Read-only

Retrieve categories in a merchant catalog, optionally including items and their IDs, to inspect or manage catalog structure and item data.

Instructions

List categories in a catalog (use include_items=true to get item IDs).

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": {
      "merchant_id": "<merchant_id>",
      "catalog_id": "<catalog_id>"
    },
    "name": "list_categories"
  }
}

Input Schema

NameRequiredDescriptionDefault
catalog_idYesCatalog ID (from list_catalogs).
merchant_idYesMerchant ID
include_itemsNoInclude items (and their IDs) in each category.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already establish readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds one piece of behavioral context, that item IDs are only present when include_items is true, but says nothing about ordering, pagination, or behavior when the catalog has no categories.

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?

A single sentence with the core action front-loaded and the optional-parameter hint in a tight parenthetical. Nothing is redundant or padded.

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 simple read-only list tool with full schema coverage and annotations carrying the safety profile, this is nearly complete. Only the return shape and result-set size limits are unstated, which is a minor gap since no output schema exists.

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 description coverage is 100%, so all three parameters are already documented, and the catalog_id description even points to list_catalogs. The description only reinforces include_items, adding marginal 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?

States a specific verb and resource: lists categories within a catalog. The agent can tell what it does, but the description does not distinguish it from related siblings such as list_catalogs or list_items_by_category.

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?

Usage is only implied: the parenthetical tells the agent to set include_items=true when item IDs are needed, which is a functional hint rather than when-to-use guidance. It never says when to choose this over list_items_by_category or other listing tools.

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