Skip to main content
Glama

Fetch a KDPTop record

fetch
Read-only

Fetch full details for an id returned by search (category:<node_id> or book:).

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": {
      "id": "<id>"
    },
    "name": "fetch"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safe-read profile is covered. The description adds one piece of real behavior: the response shape varies with the ID prefix (category vs book), which the annotations do not convey. It says nothing about failure behavior for unknown or expired IDs, or about how "full details" differs from the search result payload.

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?

A single sentence with zero filler, front-loading the action and then qualifying the acceptable input. Every clause earns its place.

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 one-parameter read with no output schema and safety already covered by annotations, the definition supplies what an agent needs to call it: what it does, the source of valid IDs, and the ID grammar. Remaining gaps – what fields "full details" returns and error behavior on an unmatched ID – are minor at this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% for the single required parameter, so the description carries the burden – and it does, specifying the literal `category:<node_id>` and `book:<ASIN>` formats that an agent could not derive from a bare string-typed `id` field. It does not say whether other prefixes exist or whether the prefix is optional when the ID is unambiguous.

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?

"Fetch full details for an id" names a specific verb and resource, and the parenthetical (category:<node_id> or book:<ASIN>) reveals that the record type is determined by the ID prefix, which distinguishes it from the typed siblings like get_book and get_category. It stops short of naming those siblings explicitly, so an agent must still infer whether fetch is a superset or a separate path.

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 definition imposes a clear precondition: the id must be one "returned by `search`", which routes the agent to search first rather than fabricating an ID. It also enumerates the two acceptable ID forms. It gives no exclusion for when to prefer the typed getters, but the precondition itself is concrete enough to guide invocation.

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.