Skip to main content
Glama

Resolve KDP category

resolve_kdp_category
Read-only

Map an Amazon Best Sellers/New Releases/search/product URL, ASIN, ISBN, browse node id or keywords to the KDP backend category path (kdp_path), whether it is selectable in KDP, list metrics and the twin node in the other format. For an ASIN it returns the competitor's actual placement leaves.

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": {
      "query": "<query>"
    },
    "name": "resolve_kdp_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesURL, ASIN/ISBN, node id or keywords
storeNobooks = print books, kindle = Kindle eBooks

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare a safe read, so the description carries the burden of disclosing output content, and it does: kdp_path, KDP selectability, list metrics, the twin node in the alternate format, and for ASINs the competitor's actual placement leaves. That is meaningful behavioral context absent from the annotation. What it omits is failure behavior (what happens for an unresolvable URL or an ambiguous keyword query) and the default when store is omitted.

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?

Two sentences, front-loaded with the verb and the input space, then a single targeted sentence about the ASIN case. No filler, no restatement of the title, and the special case is separated out where it belongs.

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 no output schema, the description must describe what comes back, and it does so at a useful level of abstraction for a low-complexity two-parameter lookup. The residual gap is edge-case behavior on unresolvable or ambiguous queries and the store default, which an agent would have to discover by calling.

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 100% for both parameters, so the schema already documents that query accepts 'URL, ASIN/ISBN, node id or keywords' and what the books/kindle enum values mean. The description largely restates that same enumeration without adding format examples, precedence rules, or a stated default for store, so 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 precise verb ('Map') and enumerates the accepted input types (URL, ASIN, ISBN, browse node id, keywords) plus the returned artifacts (kdp_path, selectability, list metrics, twin node). It never names a sibling such as get_category or recommend_categories to disambiguate, so it is clear in isolation but does not explicitly differentiate itself within the catalog.

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 implied rather than stated: the enumeration of input forms makes clear this is the tool for turning any category reference into a KDP path, and the ASIN clause hints at competitor-placement use. There is no explicit 'use this instead of X' guidance, no preconditions, and no statement of when the tool would be the wrong choice.

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.