Skip to main content
Glama

openapi_v2_markets_rating_distributions

  1. Function

Select up to 100 Amazon Listings with the highest monthly unit sales or monthly revenue in the market, then group them by star-rating range. Each group returns Listing count and share, monthly unit sales and share, monthly revenue and share, and per-Listing means for price, star rating, rating count, monthly unit sales and monthly revenue.

  1. Use cases

Profile customer-rating patterns by comparing Listing counts, unit sales and revenue across star-rating ranges; assess rating levels and demand distribution in the leading sample.

  1. Example

{"categoryIds":["679399011"],"sampleType":"unitSalesTop100"}

  1. Data range

US marketplace only. Each category is analyzed independently; product coverage can include or exclude descendants. Missing metrics remain null. Based on a leading sample of up to 100 Amazon Listings selected by monthly unit sales or revenue; results describe the sample. Omit the date for the latest available snapshot. An explicit date requires a published snapshot on that day; otherwise return no data. Use the resolvedDate returned by market search to query the same snapshot. Before querying, balance must cover the distinct requested market count at the endpoint unit price; this check does not deduct credits. Billing counts distinct returned markets (site and category ID); empty data costs zero. Price and rating means in this response exclude Listings whose corresponding metric is null; zero values participate. Different means can have different denominators; no valid values returns null.

Input Schema

NameRequiredDescriptionDefault
dateNoPublished snapshot date (YYYY-MM-DD). Omit for the latest available common snapshot; an unpublished explicit date returns no data. Use the resolvedDate returned by market search to query the same snapshot.
sampleTypeNounitSalesTop100 selects up to 100 Amazon Listings by monthly unit sales; revenueTop100 selects up to 100 by monthly revenue. Concentration analysis uses the same metric to rank products, brands or sellers and calculate their sample shares.unitSalesTop100
categoryIdsYesReal category IDs; each ID selects an independent market.
marketplaceNoMarketplace code; currently US only.US
includeDescendantCategoryProductsNotrue includes products from this category and its descendants; false counts only directly assigned products. Controls product statistics, not market-row selection.

Output Schema

NameRequiredDescriptionDefault
dataNoResponse data payload
metaYesResponse metadata including pagination info
errorNoError details if request failed
successNoWhether the request was successful

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly: US-only scope, per-category independence, null handling, snapshot-date rules (unpublished date returns no data), a pre-query balance check that does not deduct credits, billing by distinct returned markets with empty data costing zero, and per-mean denominator caveats. These are exactly the behavioral traits an agent could not infer otherwise.

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?

Well organized into Function / Use cases / Example / Data range with the purpose front-loaded, and the example is compact. It costs some points for repetition, notably the date/snapshot rule which duplicates the schema, and a dense billing sentence that could be tightened.

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 5-parameter, output-schema-backed analytics tool, the description covers everything an agent needs: scope, snapshot semantics, cost/billing behavior, and metric-specific caveats like excluding null-metric listings while counting zeros. An output schema exists, so the absence of return-format detail is not a gap.

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 description coverage is 100%, so the schema already documents every parameter; baseline is 3. The description's example JSON and date guidance largely restate the schema descriptions (the date rule is repeated almost verbatim), adding little beyond what the structured fields already provide.

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 'Function' section states a specific verb and resource: select up to 100 Amazon Listings by monthly unit sales or revenue, then group by star-rating range. The grouping dimension (star rating) clearly differentiates it from the sibling openapi_v2_markets_rating_count_distributions, and it also enumerates the exact returned metrics.

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 'Use cases' section gives clear context (profiling customer-rating patterns, assessing demand distribution in the leading sample), and the data-range text routes the caller to the resolvedDate from market search. It does not, however, state when NOT to use this tool or name a sibling to use instead when the question is about rating counts rather than star-rating bands.

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