Skip to main content
Glama

Final POS – Custom POS Builder

List products

hub_get_products
Read-only

List products in the merchant's catalogue. Answers 'what products do I have', 'find the Coca-Cola product', 'how much is X'. Pass categoryIds to answer 'what is in the Drinks category' — take the ids from get_categories, which does not return products itself. LIMITATION — there is no sorting: results come back in catalogue order and cannot be ordered by price, name or date. So 'the most expensive products' CANNOT be answered from this tool, and you must NOT page through the whole catalogue trying. Say plainly that sorting is not supported yet, then offer what does work: search by a name or SKU, filter by category, or ask the merchant to narrow it down.

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, default 1
searchNoFilter by product name or SKU (partial match)
pageSizeNoResults per page, default 20
categoryIdsNoOnly products in these categories. Ids come from get_categories; a product matching any of them is returned

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, but the description adds a critical behavioral constraint beyond them: there is no sorting, results come back in catalogue order, and paging through the whole catalogue must not be attempted. That is exactly the kind of operational context structured fields cannot carry.

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 purpose and the categoryIds workflow, then the limitation and the recommended agent phrasing. It is on the longer side and repeats the sorting limitation across two sentences, but every sentence carries actionable content rather than 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?

For a four-parameter read-only list tool with full schema coverage and no output schema, the description is nearly complete: it covers scope, filtering, and the sorting limitation. It does not describe pagination behavior (page/pageSize) or the return shape, a minor gap given the read-only profile.

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 the baseline is 3. The description restates search and categoryIds semantics that the schema already documents ('Ids come from get_categories' appears verbatim in the schema), adding no format, default, or boundary detail beyond it.

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 ('List products in the merchant's catalogue') and distinguishes itself from the adjacent get_categories tool by noting it 'does not return products itself.' The example questions ('what products do I have', 'how much is X') make the scope unambiguous without opening the schema.

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

Usage Guidelines5/5

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

Explicitly routes usage: pass categoryIds for category questions, take ids from get_categories, and it names a hard limitation plus the alternatives that do work (search by name or SKU, filter by category, ask the merchant to narrow down). When-to-use, when-not-to-use, and alternatives are all covered.

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.