Skip to main content
Glama

Find Amazon category IDs

search_categories
Read-only

Search Amazon categories by name to get category IDs for best-seller, product search, and deal tools across marketplaces.

Instructions

Search Amazon categories by name to get IDs for best_sellers, find_products and find_deals. ~$0.005.

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": {
      "term": "<term>"
    },
    "name": "search_categories"
  }
}

Input Schema

NameRequiredDescriptionDefault
termYes
domainNoAmazon marketplace, default us

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds one genuinely non-obvious trait, the ~$0.005 cost per call, but says nothing about result volume (single best match vs. list), ranking, or that results come from the live Amazon site.

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?

One front-loaded sentence with the purpose and downstream use, plus a short cost note. No filler, nothing an agent must scan past to find the action.

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?

Four elements are present: verb, resource, output (IDs) and cost. For a 2-parameter read-only lookup with no output schema, the remaining gaps are the shape of the returned IDs, the marketplace scope, and how ambiguous name matches are handled.

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%: 'domain' is documented with its default in the schema, while 'term' has no schema description. The description's 'by name' only loosely implies keyword-style input and does not mention the 2-character minimum or the fact that 'term' matches category names, not IDs.

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?

Names a specific verb and resource ('Search Amazon categories by name') and states the output ('get IDs'), plus the downstream consumers (best_sellers, find_products, find_deals). It is clearly a lookup tool rather than a data-fetch tool like category_info, though it never explicitly rules the siblings out.

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

Usage Guidelines4/5

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

The phrase 'to get IDs for best_sellers, find_products and find_deals' gives concrete usage context: call this first when you need a category ID for those tools. It stops short of exclusions, e.g. what to do if you already know the category ID or which tool to use instead for browsing categories.

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