Skip to main content
Glama

HamroLink Business OS MCP Server

commerce.category_list

Read-only

Lists all distinct product categories and their product/stock counts in the store catalog.

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": "commerce.category_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdNoOptional MongoDB Site ID
siteNameNoOptional store name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds useful behavioral context by disclosing that results are de-duplicated categories with product and stock counts, but says nothing about pagination, result size, or behavior when the catalog is empty.

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 front-loaded sentence with no filler; the resource and the returned fields are stated immediately. Nothing is redundant with the title or schema.

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, annotation-covered read tool with fully documented parameters and no output schema, the description covers purpose and return content adequately. The only shortfall is the absence of any scoping note for the optional siteId/siteName parameters.

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 both optional parameters (siteId, siteName) are already documented in the schema. The description adds no meaning about how these scope the category list or what happens when neither is supplied, so the baseline 3 applies.

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?

The description uses a specific verb ('Lists') with a precise resource ('all distinct product categories') and states the returned payload ('product/stock counts in the store catalog'). It is clearly distinguishable from commerce.list_products, which lists products rather than category aggregates, though it never names that sibling explicitly.

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 phrase 'all distinct' signals an unfiltered overview, so an agent can infer this is the browse-the-catalog-taxonomy tool. There is no explicit when-to-use, when-not-to-use, or named alternative (e.g., list_products for item-level detail).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.