Skip to main content
Glama
mansournorouzi

Amazon SP-API MCP Server

get_sales_metrics

Get aggregated sales metrics (total sales, units, orders) for date ranges of 7+ days, grouped by day, week, or month. Data has a 24-48 hour delay.

Instructions

Get aggregated sales metrics from Amazon Sales API. USE THIS for longer date ranges (7+ days, 30 days, etc). IMPORTANT: Data has a 24-48 hour delay, so the last 2 days will NOT have data. For yesterday/today sales, use get_sales_summary instead. Returns total sales, unit count, order count grouped by day/week/month.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
intervalNoTime granularity for the metricsDay
startDateYesStart date in ISO 8601 format (e.g., 2025-01-01)
endDateYesEnd date in ISO 8601 format (e.g., 2025-01-31)
asinNoFilter by specific ASIN
skuNoFilter by specific SKU
Behavior5/5

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

With no annotations, the description fully bears the burden. It discloses the 24-48 hour data delay (last 2 days lack data), a critical behavioral trait. Additional implied read-only behavior and aggregation grouping add transparency.

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

Conciseness5/5

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

Three concise, front-loaded sentences: purpose, usage guidance, then behavioral and return info. No redundant words; each sentence earns its place.

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 tool with no output schema, the description covers return contents (sales, units, orders), data delay, granularity, and usage context. It is fully adequate for an agent to understand input/output and when to invoke.

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% (all parameters have descriptions). The description adds usage context like 'longer date ranges' for startDate/endDate, implying a minimum range, and that interval groups by the enumerated values. This extra semantic value justifies a 4 above baseline 3.

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?

Clearly states 'Get aggregated sales metrics' and specifies it's for longer date ranges (7+ days, etc.), distinguishing from sibling get_sales_summary. Also lists the returned metrics (total sales, unit count, order count grouped by day/week/month).

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?

Explicitly provides when to use ('for longer date ranges') and when not to use ('for yesterday/today sales, use get_sales_summary instead'). Also notes the 24-48 hour data delay, guiding the agent on data freshness.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mansournorouzi/amazon-sp-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server