Skip to main content
Glama

Read best-selling products

readTopProducts
Read-onlyIdempotent

The products that earned the most over the last days, best first, up to limit (10 by default, 50 at most): each with its title, orders, units and revenue. For the store's totals use readStoreOverview; for product pages that need work, readListings.

Only for a workspace with a store connected: listWorkspaces says which are stores.

Input Schema

NameRequiredDescriptionDefault
toNoLast day of the range, YYYY-MM-DD, today at the latest; a range is two years at most
daysNoReporting window in days
fromNoFirst day of a custom range, YYYY-MM-DD. With `to`, it takes the place of `days`
limitNo
workspaceIdNoThe workspace, as listWorkspaces gives it (its id or slug). Leave it out when this connection reaches one workspace.

Output Schema

NameRequiredDescriptionDefault
productsYesMost revenue first

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds genuinely useful behavior: the ordering guarantee (highest revenue first), result caps (10 default, 50 max), and the availability precondition that the workspace must have a connected store. It stops short of stating anything about result emptiness or how 'earned' is computed, so it is not fully closed.

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 the resource and ordering, then a short routing sentence, then a one-line precondition — no wasted framing. Minor redundancy in restating the returned field list when an output schema already exists, but the sizing is appropriate for a 5-param tool.

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?

With an output schema handling return values and 80% schema coverage on inputs, the description supplies exactly the missing pieces: ordering, caps, sibling routing, and the store-connection prerequisite. Nothing an agent needs to call it correctly is absent.

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 80%, and the description adds meaning where the schema is silent — it documents the `limit` default and ceiling that the schema leaves undescribed, and clarifies that `days` is a revenue ranking window. The from/to interplay is handled by the schema itself rather than added here.

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?

States a specific verb+resource (top-earning products) with ranking direction ('best first') and the exact fields returned (title, orders, units, revenue). It explicitly names the two nearest siblings — readStoreOverview for totals, readListings for product pages — so an agent can distinguish it 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?

Gives explicit when-to-use routing ('For the store's totals use readStoreOverview; for product pages that need work, readListings') plus a hard prerequisite: only for a workspace with a store connected, and it points to listWorkspaces to check. Both the alternative and the exclusion condition are stated.

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