Skip to main content
Glama

getShopCategories

Read-only

List shop categories. Omit locationRef to list categories across all locations, or provide it to scope to one location. Call getLocations to list locations, or getLocation to fetch one by locationId.

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": "getShopCategories"
  }
}

Input Schema

NameRequiredDescriptionDefault
locationRefNoUUID of the location whose shop categories to list, in the order the shop shows them. Omit to list the categories of every location of the network, grouped by location.

Output Schema

NameRequiredDescriptionDefault
categoriesYes
nextPageTokenNoPass it back as nextPageToken, with the same filters, to get the next page. Absent on the last page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/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 a meaningful behavioral fact beyond that: the default (omitting locationRef) is an unbounded, all-locations read, which affects result volume. It doesn't discuss pagination or ordering, but the output schema and parameter schema carry those details.

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 short sentences, front-loaded with the purpose, then the parameter branch, then the prerequisite. No filler, and each sentence carries a distinct piece of information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single optional-parameter read tool with full annotation coverage and an output schema, nothing essential is missing: purpose, scope default, and how to obtain the locationRef are all stated. Return-value detail is correctly left to the output schema.

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 single parameter's meaning, UUID format and grouping behavior are already documented in the schema; baseline is 3. The description restates the omit-vs-provide semantics and adds the hint that the value is a locationId obtained from getLocation, which is only marginally beyond the schema.

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?

The description opens with a specific verb+resource: 'List shop categories.' It also implies the collection-vs-single distinction against getShopCategory by framing the call as a list scoped by location. An agent can identify what this returns 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?

Explicit conditional guidance: omit locationRef for all locations, provide it to scope to one. It also names the prerequisite resolution path (getLocations to list, getLocation to fetch one by locationId), so the agent knows where the UUID comes from before calling.

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.

Resources