Skip to main content
Glama

research_niche

Get detailed KDP niche intelligence for a specific keyword.

Returns demand score, competition score, Amazon BSR range, estimated
monthly revenue, review threshold, average book pricing, and data
freshness for the given Kindle publishing niche.

Pricing tiers (x402 USDC on Base network):
  - $0.03 per query for cached/pre-seeded keywords
  - $0.10 per query for live on-demand research (new keywords)

Use the free `list_niches` tool first to see available keywords.

Payment options:
  1. Set the KDP_X_PAYMENT environment variable on the server for auto-pay.
  2. Pass a valid x402 payment header via the x_payment argument.
  3. If neither is set, the tool returns structured 402 payment instructions
     that an x402-capable agent can use to construct and retry payment.

Args:
    keyword: The KDP niche keyword to research (e.g. "romance novels", "keto cookbook")
    x_payment: Optional base64-encoded x402 payment header. Takes precedence
               over the KDP_X_PAYMENT environment variable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keywordYes
x_paymentNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A5/5.0
Behavior5/5

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

With no annotations, the description fully carries the burden and does so exceptionally. It discloses payment gating, the precedence of the x_payment argument over the environment variable, and the explicit fallback behavior of returning structured 402 payment instructions. This is transparent about how the tool behaves under different conditions.

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?

The description is well-organized with clear sections: an overview, pricing tiers in bullet points, payment options numbered, and args with descriptions. Every sentence adds necessary information, and the formatting makes it easy for an agent to parse.

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?

Given the tool has an output schema (so return values need no explanation), the description covers everything else: prerequisite usage (list_niches), pricing, payment methods, fallback behavior, and data freshness. It is complete for an agent to select and invoke this tool correctly.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate, and it does. It explains `keyword` with examples ('romance novels', 'keto cookbook') and clarifies `x_payment` as a base64-encoded x402 header with precedence semantics. Both parameters are fully documented beyond the bare 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 'Get detailed KDP niche intelligence for a specific keyword,' which is a specific verb+resource+scope. It also lists concrete data points returned (demand score, competition score, BSR range, etc.), clearly distinguishing it from the sibling list_niches tool.

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?

Explicitly instructs to 'Use the free `list_niches` tool first to see available keywords,' naming the alternative and providing a workflow. It also details pricing tiers and payment options, giving the agent clear conditional guidance for when to auto-pay, pass a header, or expect a 402 response.

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.

TDQS

A4.6/5.0
Disambiguation5/5

The two tools are completely distinct: list_niches provides an overview of available keywords, while research_niche dives into detailed metrics for a specific keyword. There is no overlap in purpose or output, making selection unambiguous.

Naming Consistency5/5

Both tools follow a consistent verb_noun convention with lowercase and underscores: list_niches and research_niche. The pattern is predictable and matches the server's research-focused domain.

Tool Count3/5

With only two tools, the server feels thin for a complete research workflow, though it covers the essential 'discover then investigate' flow. The count is borderline but not entirely inadequate given the focused purpose.

Completeness4/5

The core workflow of listing niches and researching a specific niche is covered with no dead ends. Minor gaps include lack of bulk research or filtering options, but agents can manually iterate over list results to achieve similar outcomes.

Resources