Skip to main content
Glama

browse_category

Read-only

List products from a specific grocery category at one chain using valid category codes. Filter by diet, sale status, and max price, then sort or page the results.

Instructions

List the products of one category at one chain. Take the code from list_categories or a product's category_code instead of guessing.

Args: category: The chain's category code. diet / on_sale / max_price / sort: As in search_products. rows: Hits, at most 20. Default 10. offset: Paging offset. Default 0.

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": {
      "chain": "<chain>",
      "category": "<category>"
    },
    "name": "browse_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
dietNo
rowsNo
sortNo
chainYes
offsetNo
on_saleNo
categoryYes
max_priceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds genuinely new behavior: rows is capped at 20 and paging is via offset. It says nothing about ordering, result size beyond the cap, or what happens when the category code is invalid for the chain.

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 the action and scope, then a short docstring-style arg list. Every line carries information; the only inefficiency is the 'As in search_products' shorthand, which trades verbosity for a lookup.

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 an 8-parameter read tool with no output schema, the definition covers paging and parameter sourcing but leaves chain unexplained and does not characterize the returned product list or its ordering. Adequate but with visible gaps.

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% across 8 parameters, so the description must carry the load. It defines category, rows (max 20, default 10), and offset (default 0), and routes diet/on_sale/max_price/sort to search_products, but that cross-reference forces the agent to open another tool, and the required chain enum is never explained.

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 plus the exact scope: 'List the products of one category at one chain.' The scope qualifier distinguishes it from the broader search_products and from list_categories, which is the natural confusion point.

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 a concrete sourcing rule for the key parameter: take the code from list_categories or a product's category_code 'instead of guessing.' It also defers shared filter semantics to search_products. It does not explicitly state when to prefer this over search_products, so it falls short of 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.