Skip to main content
Glama

list_categories

Retrieve grocery department and sub-department IDs to use as category_id when searching for products at a Save-On-Foods location.

Instructions

List departments under parent_id (default: top-level Grocery departments such as Meat & Seafood, Fruits & Vegetables, Deli & Ready Made Meals). Use the returned ids as category_id in search_products. depth 2 includes sub-departments.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
depthNo
parent_idNo30372

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It does disclose the default listing behavior (top-level Grocery departments) and the depth semantics, but says nothing about result limits, pagination, or any auth/permission requirements. For a benign read operation the disclosure is adequate but not rich.

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?

Three tight sentences, front-loaded with what the tool lists and what the defaults are, then the downstream usage hint. Every sentence earns its place with no filler.

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?

An output schema exists so return values needn't be described. Purpose, both parameters, and downstream usage are covered for a simple two-arg read tool, though richer detail on result size/pagination would fully round it out.

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?

Schema description coverage is 0%, so the description must compensate and largely does: parent_id's default meaning (top-level parent, id 30372) is stated, and depth's effect (2 includes sub-departments, implying 1 is direct children only) is explained. That covers both parameters, though exact accepted depth values are left implicit.

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 (List) and resource (departments/categories) and pins down scope: departments under parent_id, defaulting to top-level Grocery departments with concrete examples. It also distinguishes itself from siblings by explaining its role as a feeder for search_products' category_id.

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?

Gives clear context: use returned ids as category_id in search_products, and depth 2 to reach sub-departments. It does not state when this tool should NOT be used or name a specific alternative for other category lookups, so it stops short of 5.

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