Skip to main content
Glama

Query sales traffic

query_sales_traffic
Read-only

Returns sales traffic summaries or paginated sales traffic metrics by ASIN or parent ASIN for a single store and business date range. MCP reporting and workflow metric date ranges use yyyy-MM-dd and include both startDate and endDate, with at most 95 calendar days per range. For longer read-only reports, split into non-overlapping windows: endDate = startDate plus 94 days, capped at the requested end date; the next startDate is the previous endDate plus 1 day. Apply the same limit independently to comparison ranges. Do not average ratios such as ACOS or ROAS across windows; recompute them from summed base metrics. Do not automatically split advertising write plans or metric-based selectors; obtain a supported analysis window from the user. Keyword ranking trends have separate limits: DAILY supports up to 90 inclusive days and RAW up to 31 inclusive days. For keyword ranking trends, use these interval-specific limits when splitting read-only reports. This reporting limit does not apply to campaign scheduling dates.

Input Schema

NameRequiredDescriptionDefault
asinsNoComma-separated ASIN filters, up to 100 values. Omit to include all ASINs.
limitNoMaximum number of items to return. Defaults to 100 and cannot exceed 100.
offsetNoZero-based pagination offset.
sortByNoSales traffic sort field.
endDateYesEnd business date in yyyy-MM-dd format. Date range is inclusive and can contain at most 95 days. For longer read-only reports, use non-overlapping windows of up to 95 days.
storeIdYesStore ID from the Stores API, formatted as sellerId:marketplaceId.
sortOrderNoSort order.
startDateYesStart business date in yyyy-MM-dd format. Date range is inclusive and can contain at most 95 days. For longer read-only reports, use non-overlapping windows of up to 95 days.
reportTypeNoReport type.
parentAsinsNoComma-separated parent ASIN filters, up to 100 values. Omit to include all parent ASINs.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Consistent with readOnlyHint=true and destructiveHint=false, and it goes well beyond the annotations: the 95-inclusive-day cap, the exact split algorithm (endDate = startDate + 94, next startDate = previous endDate + 1), the rule that ratios like ACOS/ROAS must be recomputed from summed base metrics rather than averaged, and that comparison ranges are limited independently. The only weakness is that some disclosed limits (keyword ranking DAILY/RAW caps, campaign scheduling dates) belong to sibling tools and dilute the disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in sentence one and the chunking algorithm is actionable, but the middle section is bloated with rules for tools other than this one — keyword ranking DAILY/RAW interval limits and campaign scheduling exclusions — which consume roughly a third of the text without affecting how this tool is called.

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 10-parameter read tool with full schema coverage, an output schema, and read-only annotations, the description covers the one non-obvious operational constraint (date-window size and splitting) thoroughly. It is short only on how reportType selects between summary and row-level output, which is the main remaining ambiguity for an agent.

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 coverage is 100%, so the schema already documents every parameter including the yyyy-MM-dd format and the 95-day inclusive range — the description largely restates this. It adds no meaning for reportType, whose six enum values (store, dailyStore, asin, parentAsin, dailyAsin, dailyParentAsin) determine the shape of the response and are never explained. Baseline 3 applies.

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?

The first sentence names a specific verb (Returns) and a specific resource (sales traffic summaries / paginated sales traffic metrics), scoped to ASIN or parent ASIN, one store, and a date range. That is enough to distinguish it from write-side siblings, but it never distinguishes it from the closest read siblings query_sales and query_sales_orders, which an agent must choose between.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives real when/when-not guidance for the date dimension: split read-only reports into non-overlapping windows, but do not auto-split write plans or metric-based selectors — ask the user for a supported window. It gives no guidance at all on when to pick this tool over query_sales or query_sales_orders, so tool-selection guidance is only implied.

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