Skip to main content
Glama

Get Price History

get_price_history
Read-onlyIdempotent

Fetch historical Amazon prices for any ASIN across Amazon, new third-party, used, and buy box listings. Choose from time ranges like 30d, 6m, 1y to track price trends and make informed purchase decisions.

Instructions

Fetch historical price data for an Amazon ASIN from Keepa.

Returns a decoded, downsampled time series (at most 60 data points) for:

  • Amazon price (sold by Amazon directly)

  • New (3P) price (lowest new third-party price)

  • Used price (lowest used price)

  • Buy box price

Keepa stores prices in cents. All prices returned are in USD. Keepa time values (minutes since 2011-01-01) are decoded to ISO dates.

Args:

  • asin (string): Amazon ASIN

  • range (string, optional): Time range. "30d", "6m", "1y", "all". Default: "90d"

  • domain (number, optional): Keepa domain id (default 1 = amazon.com)

Examples:

  • "Show price history for B08N5WRWNW over the past year" -> range="1y"

  • "What has the Amazon price been for B07PXGQC1Q in the last 30 days?" -> range="30d"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
asinYesAmazon ASIN
rangeNoTime range for history. Examples: "30d" (30 days), "6m" (6 months), "1y" (1 year), "all" (full history). Default: 90d90d
domainNoKeepa domain id (1 = amazon.com)
Behavior4/5

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

Annotations already indicate read-only and idempotent behavior. The description adds valuable behavioral details: downsampling to at most 60 data points, cents-to-USD conversion, and decoding Keepa time to ISO dates. This goes beyond annotation coverage.

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?

The description is well-structured and front-loaded: main purpose, return data, unit/time conventions, args, and examples. Every section earns its place with no redundancy or fluff.

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?

Despite having no output schema, the description explains what data points are returned and the format. Combined with strong annotations (read-only, idempotent, non-destructive), it gives a complete picture for a 3-parameter read tool.

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 covers all parameters (100% coverage), so baseline is 3. The description adds concrete examples for range values and clarifies domain default, which helps the agent map natural language to parameter values.

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?

The description states the specific action ('Fetch historical price data') on a specific resource ('Amazon ASIN from Keepa') and clearly lists the returned data series. It distinguishes itself from siblings like get_product (product info) and get_sales_rank_history (sales rank), though not explicitly.

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

Usage Guidelines4/5

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

Provides clear context through examples and parameter descriptions, showing when to use (e.g., 'Show price history for B08N5WRWNW over the past year'). Does not mention alternative tools or exclusions, so it's not a 5, but it's more than implied usage.

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/purahmanian/keepa-mcp'

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