Skip to main content
Glama

list_items_by_category

Read-only

Retrieve all items, products, or options in a specified merchant category to browse or manage catalog contents.

Instructions

List items/products/options in a category.

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>",
      "category_id": "<category_id>"
    },
    "name": "list_items_by_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
category_idYesCategory ID (from list_categories).
merchant_idYesMerchant ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered by structured fields. The description adds nothing beyond that: no mention of pagination, ordering, whether empty categories return an empty list, or whether options are nested under items. For a read tool this is passable but thin.

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?

A single short sentence with no wasted words, and the action is front-loaded. It is under-specified rather than verbose, but nothing is padded or buried.

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?

The tool is simple (two required string params, read-only) and annotations cover the safety profile, so little is strictly missing. However, with no output schema there is no disclosure of the return shape or pagination, which is the main remaining gap for an agent deciding whether the response is usable.

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 both parameters carry descriptions, including the useful pointer that category_id comes from list_categories. The description adds no meaning beyond the schema, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a verb ("List") and a resource, but the resource is ambiguous: "items/products/options" suggests three possible return types without saying which applies or whether the category scope is the differentiator. It does not distinguish this from sibling tools like list_products or list_categories, so an agent cannot tell from the text alone which lister to pick.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use guidance is given. With sibling tools such as list_products and list_categories present, the definition never says to use this one when the category is known and the broader listers when it is not, nor does it mention any prerequisites or exclusions.

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