Skip to main content
Glama

Query advertising

query_advertising
Read-only

Returns store-level advertising performance or paginated advertising performance metrics grouped by SKU, 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
limitNoMaximum number of items to return. Defaults to 100 and cannot exceed 100.
offsetNoZero-based pagination offset.
sortByNoAdvertising performance sort field.
valuesNoOptional identifiers for the selected dimension.
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.
dimensionNoQuery dimension.
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.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond the readOnly/destructive annotations, the description discloses concrete behavioral traits: a 95-calendar-day cap with explicit window-splitting arithmetic, ratio-recomputation warnings (ACOS/ROAS), interval-specific keyword-ranking limits (DAILY 90, RAW 31), the requirement to ask the user for a supported analysis window on write plans, and clarification that the limit does not apply to campaign scheduling dates. This is rich context an agent could not infer from annotations or schema.

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?

Purpose is front-loaded in the first sentence, and subsequent sentences follow a logical constraint-then-procedure order. The ratio-recomputation and keyword-trend caveats are dense but each carries distinct information; minor redundancy around repeated 95-day language prevents a 5.

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?

With an output schema present, return values need not be explained, and the description thoroughly covers the trickiest complexity (date-window handling and ratio aggregation). It is nearly complete, with the only gap being explicit tool-selection guidance against the many sibling advertising query tools.

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, but the description adds meaningful semantics for startDate/endDate beyond the schema: exact splitting rules, independence of comparison ranges, and the distinction between reporting vs scheduling date limits. It does not elaborate on limit/offset/sortBy beyond the schema, keeping it at a 4.

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 states a specific verb ('Returns') and resource ('store-level advertising performance or paginated advertising performance metrics grouped by SKU, ASIN, or parent ASIN') scoped to a single store and date range. It is clear what the tool produces, though it does not explicitly contrast itself with siblings like query_advertising_campaigns or diagnose_ad_efficiency.

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?

The description provides extensive operational usage guidance for date ranges (95-day windows, non-overlapping splits, separate limits for keyword ranking trends, no auto-splitting of write plans). However, it never states when to choose this tool over sibling query/diagnose tools, so selection guidance is only implied by the resource name.

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