Skip to main content
Glama

Search product categories

category_search
Read-onlyIdempotent

Find canonical SuperCheap categories using lexical and semantic matching. query must contain at least two non-whitespace characters. countryCode is a two-letter ISO country code and languageCode is a two-letter ISO language code; either may use uppercase or lowercase letters. Full locale tags such as en-US are not accepted. Both market fields are required.

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": {
      "countryCode": "<countryCode>",
      "languageCode": "<languageCode>",
      "query": "<query>"
    },
    "name": "category_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
countryCodeYesISO 3166-1 alpha-2 market country code; case-insensitive (for example, TH or th).
languageCodeYesISO 639-1 two-letter language code; case-insensitive (for example, en or EN). Do not pass a locale tag.

Output Schema

NameRequiredDescriptionDefault
categoriesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / countryCode / description
      Previous value: -"ISO 3166-1 alpha-2 country code"New value: +"ISO 3166-1 alpha-2 market country code; case-insensitive (for example, TH or th)."
    • changedInput schema / properties / countryCode / pattern
      Previous value: -"^[A-Z]{2}$"New value: +"^[A-Za-z]{2}$"
    • changedInput schema / properties / languageCode / description
      Previous value: -"Lowercase two-letter language code"New value: +"ISO 639-1 two-letter language code; case-insensitive (for example, en or EN). Do not pass a locale tag."
    • changedInput schema / properties / languageCode / pattern
      Previous value: -"^[a-z]{2}$"New value: +"^[A-Za-z]{2}$"
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds some operational context — a two-non-whitespace-character floor, rejection of full locale tags, and that both market fields are mandatory — but most of this restates the schema's minLength, pattern, and required list rather than disclosing new behavior such as result ordering or match threshold.

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?

The purpose statement is front-loaded and the remaining sentences are short and constraint-focused. A few clauses (case-insensitivity, repeated rejection of locale tags) duplicate the schema, so it is not maximally tight, but there is no 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?

With an output schema present, return values need not be explained, and annotations plus the format rules cover safety and validation. The main residual gap is the undocumented limit parameter and any note on how many/which matches come back, which is minor for a read-only search tool.

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 50%: countryCode and languageCode carry their own descriptions, while query and limit have none. The description partially compensates by explaining that query drives lexical/semantic matching and that locale tags are rejected, but it never mentions limit, so the coverage gap is only half closed.

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 names a specific verb and resource ('Find canonical SuperCheap categories') and characterizes the matching strategy ('lexical and semantic matching'), which separates it from a pure tree walk like category_get_tree or a product search. It does not explicitly name a sibling or state the boundary, so it stops short of a 5.

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?

There is no when-to-use guidance at all: nothing says when to search versus browsing category_get_tree, or when to use this over catalog_search_products. The only directives are input-format constraints (character minimum, ISO code shape), which are validation rules rather than selection guidance.

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