Skip to main content
Glama

Easyparser: Amazon Product & Seller Data

get_sales_history

Read-only

Retrieve a product's historical performance over up to 12 months: weekly aggregated trends for estimated views/traffic, sales, price, and Best Sellers Rank. This is Easyparser's 'time machine', the deepest competitive-intelligence tool in this server.

Use this tool for trend forecasting, seasonality analysis, conversion-rate estimation, and investment/sourcing due diligence. Do NOT use it for a simple current price check; get_product_detail is 5x cheaper for that.

IMPORTANT cost rule: the base cost is 5 credits, and each month of history adds 1 credit (3 months = 8 credits, 12 months = 17 credits). Always ask the user how far back they need, or default to 3 months for a quick trend read. The history array in the response is aggregated by WEEK, not by day.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "asin": "<asin>"
    },
    "name": "get_sales_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
asinYesAmazon Standard Identification Number, a 10-character alphanumeric product identifier (e.g. B0CJB6V2L5). Found in the product URL after /dp/ or /gp/product/.
domainNoAmazon marketplace domain extension. Determines the regional Amazon site the data is fetched from. Use the domain that matches the user's market, because prices, availability and rankings differ across marketplaces..com
history_rangeNoDepth of historical data in months. '0' returns only the current snapshot (5 credits). '3', '6', '9', '12' add weekly history at +1 credit per month. Default '0'.0

Output Schema

NameRequiredDescriptionDefault
dataNoParsed Amazon data for the operation.
successYesTrue when the request completed.
operationYesEasyparser operation that ran, e.g. DETAIL or OFFER.
request_idNoEasyparser request ID, useful for support and error logs.
credits_usedNoCredits charged for this request.
applied_addressNoDelivery address the request used (zipCode array, city, district, country_code). Without address fields this is the marketplace default.
credits_remainingNoCredits left on the account after this request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / applied_address
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Delivery address the request used (zipCode array, city, district, country_code). Without address fields this is the marketplace default.",
      +  "type": "object"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / asin / description
      Previous value: -"Amazon Standard Identification Number — a 10-character alphanumeric product identifier (e.g. B0CJB6V2L5). Found in the product URL after /dp/ or /gp/product/."New value: +"Amazon Standard Identification Number, a 10-character alphanumeric product identifier (e.g. B0CJB6V2L5). Found in the product URL after /dp/ or /gp/product/."
    • changedInput schema / properties / domain / description
      Previous value: -"Amazon marketplace domain extension. Determines the regional Amazon site the data is fetched from. Use the domain that matches the user's market — prices, availability and rankings differ across marketplaces."New value: +"Amazon marketplace domain extension. Determines the regional Amazon site the data is fetched from. Use the domain that matches the user's market, because prices, availability and rankings differ across marketplaces."
  3. Changed1 schema field changed
    • changedInput schema / properties / domain / enum
      Previous value: -[
      -  ".com",
      -  ".co.uk",
      -  ".de",
      -  ".fr",
      -  ".it",
      -  ".es",
      -  ".ca",
      -  ".com.mx",
      -  ".com.br",
      -  ".co.jp",
      -  ".in",
      -  ".com.au",
      -  ".ae",
      -  ".sa",
      -  ".nl",
      -  ".pl",
      -  ".se",
      -  ".be",
      -  ".com.tr",
      -  ".sg",
      -  ".ie"
      -]New value: +[
      +  ".com",
      +  ".co.uk",
      +  ".de",
      +  ".fr",
      +  ".it",
      +  ".es",
      +  ".ca",
      +  ".com.mx",
      +  ".com.br",
      +  ".co.jp",
      +  ".in",
      +  ".com.au",
      +  ".ae",
      +  ".sa",
      +  ".nl",
      +  ".pl",
      +  ".se",
      +  ".com.be",
      +  ".com.tr",
      +  ".sg",
      +  ".ie",
      +  ".eg"
      +]
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "credits_remaining": {
      +      "description": "Credits left on the account after this request.",
      +      "type": "number"
      +    },
      +    "credits_used": {
      +      "description": "Credits charged for this request.",
      +      "type": "number"
      +    },
      +    "data": {
      +      "description": "Parsed Amazon data for the operation."
      +    },
      +    "operation": {
      +      "description": "Easyparser operation that ran, e.g. DETAIL or OFFER.",
      +      "type": "string"
      +    },
      +    "request_id": {
      +      "description": "Easyparser request ID, useful for support and error logs.",
      +      "type": "string"
      +    },
      +    "success": {
      +      "description": "True when the request completed.",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "success",
      +    "operation"
      +  ],
      +  "type": "object"
      +}
  5. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the description adds real behavioral context beyond them: a concrete credit cost formula (5 base + 1 per month, with worked examples) and the response granularity caveat that history is aggregated by WEEK, not by day. Both are things an agent would otherwise get wrong when interpreting results or quoting cost to a user.

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 purpose and scope, then use cases, then the cost rule – a logical ordering. Minor waste: the credit-cost arithmetic is stated twice (once inline, once as worked examples) and duplicates what the history_range schema field already documents.

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 read-only analytics tool with a full output schema and fully documented parameters, the description covers capability, cost, exclusions, and result shape without needing to explain return fields. The only uncovered edge case is behavior when a product has less than the requested history, which is a minor omission.

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 description coverage is 100%, so the baseline is 3; the description goes further by tying history_range depth to a credit cost and recommending '3 months for a quick trend read.' That recommendation sits slightly at odds with the schema's documented default of '0', which an agent could read as conflicting guidance, but the added decision heuristic is still valuable.

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 concrete verb and resource ('Retrieve a product's historical performance') plus the exact scope: up to 12 months, weekly aggregates for views/traffic, sales, price, and BSR. It explicitly positions itself against the sibling 'get_product_detail' for simple price checks, so an agent can separate the two without opening either 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 named use cases (trend forecasting, seasonality, conversion-rate estimation, sourcing due diligence) and an explicit when-NOT ('Do NOT use it for a simple current price check; get_product_detail is 5x cheaper'), including the cost rationale behind the exclusion. It also prescribes a defaulting policy (ask the user, else 3 months).

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.