Skip to main content
Glama

Research a niche

research_niche
Idempotent

Researches an Amazon KDP niche for one book type and returns a report_id. Uses 1 research search (not pages). Research searches are separate from pages: trials, Mini and Starter accounts get 3 in total; once paid, Creator gets 30, Professional 100 and Studio 300 a month. Through an API key, spending (pages and research searches) needs a paid Creator plan or higher: trials, Mini and Starter accounts connect through an app (the Connect button) instead, which can spend on any plan or trial. Without a plan, legacy free pages can be used only on colorcraft.ai, and the same goes for the free research searches. Accounts with no plan or trial have no Research. get_account’s research.available says whether this connection can search, and why not. No search is used when the account already holds this report and a new search would show nothing new (already_held: true), when the report has too little data (the search is given back), or when the build fails. Rephrasing a niche counts as a new search; check list_research_history and list_niche_opportunities (both free) first. Reports rarely change within 14 days. KDP reportedly allows only about 2 new titles per format per week, so a few strong niches beat many searches. ColorCraft makes KDP paperback files: hardcover reports come back with format_supported_for_export: false, for reading the market; before making a book from one, check the paperback market with research_niche (format paperback). If status is building or queued, call get_job with job_id until done; then read it with get_niche_report. Needs an idempotency_key: reusing it replays the first answer without searching again.

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": {
      "niche": "<niche>",
      "book_type": "<book_type>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "research_niche"
  }
}

Input Schema

NameRequiredDescriptionDefault
nicheYesThe niche as a shopper would type it on Amazon, e.g. "cozy cottage coloring book".
formatNoAmazon format to research (default paperback; ColorCraft exports paperback only).
book_typeYesThe kind of book: coloring, storybook, comic or puzzle.
idempotency_keyYesA unique label for this search (e.g. a UUID, 8-120 characters). Reuse it, with the same arguments, to retry safely: a repeat never does the work twice and returns the first call’s result as it was then (its text says Replayed, and the result’s _meta has colorcraft/replayed: true and colorcraft/first_called_at, the first call’s time), not the current state; read that with get_job or get_niche_report. The same key with different arguments is refused with idempotency_conflict (a different request needs a new idempotency_key), and so is a repeat after a first call that failed part-way (its message says what to check before a new key); while the first call is still running, a repeat answers busy with retry_after_seconds. A key is remembered per tool and per account: the same key sent to a different tool is a separate request, never a replay of or a conflict with the other tool’s.

Output Schema

NameRequiredDescriptionDefault
formatYes
job_idYes
statusYesready: read it with get_niche_report. building or queued: call get_job with job_id.
chargedYesWhether this call used one of the account’s research searches.
web_urlYes
report_idYes
already_heldYesThe account already held this report, so no search was used.
next_actionsYesTools that make sense next, in order. research_niche is left out when this connection cannot spend (get_account’s spend_blocked_reason says why).
searches_usedYes
searches_limitYes
searches_remainingYes
format_supported_for_exportYesFalse for hardcover: ColorCraft exports KDP paperback files only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say it is non-read-only, open-world and idempotent; the description adds the costly details an agent cannot get elsewhere: it consumes one research search (not pages), the per-plan quotas, the API-key vs app connection distinction, and the three cases where no search is charged (already_held, too little data, build failure). It also spells out the async follow-up (get_job while building/queued, then get_niche_report) and the idempotency_key replay semantics. Nothing here contradicts readOnlyHint=false or idempotentHint=true.

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?

Front-loaded with purpose and outcome, and nearly every sentence carries a distinct operational fact, so the length is largely justified. It loses a point for being a single dense paragraph where the plan/quota billing rules, the async flow, and the format caveat are interleaved rather than grouped.

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?

For a paid, quota-consuming, potentially asynchronous operation this covers everything an agent needs: cost accounting, plan prerequisites, free pre-checks, no-charge edge cases, the polling path, and the export limitation. With an output schema present it correctly omits return-value detail.

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 100%, so the baseline is 3, and the description earns a step above it by adding meaning the schema lacks: rephrasing a niche is a new search (niche semantics), and hardcover reports return format_supported_for_export=false because ColorCraft exports paperback only (format semantics). It does not add much on book_type or idempotency_key beyond what the already-verbose schema descriptions say.

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?

Opens with a specific verb and resource ("Researches an Amazon KDP niche for one book type") and states the concrete return value (report_id). It also implicitly separates itself from the free lookups (list_research_history, list_niche_opportunities) and from the read-back tool (get_niche_report), so an agent can place it in the workflow without opening a schema.

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?

Explicit when-to-use and when-not-to-use rules: check the two free tools first, reports rarely change within 14 days, rephrasing a niche counts as a new paid search, and hardcover reports should be followed by a paperback research_niche before building a book. It also names get_account's research.available as the pre-flight check, which is the precise alternative an agent needs.

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