Skip to main content
Glama

list_categories

Read-only

Look up grocery category codes by German name or path for browse_category, returning matching codes and paths per chain; omit query to list all.

Instructions

Look up category codes by German name, for browse_category. Matches the category's own name ("milch" finds "Kühlwaren / Milch"), or its whole path if no name matches, and returns {count, <chain>: [{code, path}]}.

Args: query: Case- and accent-insensitive substring. Omit to list all. limit: Categories in all, at most 100. Default 40.

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

Input Schema

NameRequiredDescriptionDefault
chainNo
limitNo
queryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint=false, so safety is covered; the description adds real behavior beyond that: name-vs-full-path fallback matching and an explicit return shape of {count, <chain>: [{code, path}]}. It does not discuss pagination or how the chain dimension is applied, which keeps it below a 5.

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 purpose and consumer, then matching rules, then return shape, then a compact Args block — every sentence carries information. The Args formatting is slightly verbose relative to the body but nothing is redundant.

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 lookup with no output schema, the description supplies both the return shape and the matching semantics an agent needs to interpret results. The missing piece is any explanation of the chain parameter's role and what the '<chain>' key in the response means.

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 0%, so the description must carry the load: it explains query (case- and accent-insensitive substring, omittable) and limit (max 100, default 40) well. However, the chain parameter — the one with an enum — is never explained in the description, leaving a third of the parameters solely documented by a bare enum in the schema.

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 ('look up category codes by German name') and explicitly ties the tool to its consumer, browse_category, so an agent can tell it apart from search_products or get_product. The matching rule described in the next sentence further pins down the exact behavior.

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?

The phrase 'for browse_category' gives clear context for when to reach for this tool, and 'Omit to list all' tells the agent how to widen the query. It stops short of stating exclusions or naming a lookup alternative, so it is clear-context rather than full when/when-not guidance.

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