Skip to main content
Glama
marcusquinn

Amazon Order History CSV Download MCP

by marcusquinn

export_amazon_shipments_csv

Export Amazon shipment tracking data to CSV for delivery monitoring and shipment reconciliation. Extracts tracking information, status, and delivery details from order history.

Instructions

Export Amazon shipment tracking data to CSV file. Visits each order's detail page to extract tracking info (~4s/order). CSV columns: Order ID, Date, Shipment ID, Status, Delivered (Yes/No/Unknown), Tracking ID, Tracking URL, Items in Shipment, Item Names, Payment Amount, Refund. Useful for tracking deliveries and reconciling shipments.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearNoYear to export (defaults to current year)
regionYesAmazon region code
end_dateNoEnd date in ISO format (YYYY-MM-DD)
max_ordersNoMaximum number of orders to process. Recommended: 25-50 per batch due to ~4s/order extraction time.
start_dateNoStart date in ISO format (YYYY-MM-DD)
output_pathNoFull path to save CSV file. Defaults to ~/Downloads/amazon-{region}-shipments-{year}-{date}.csv
fetch_tracking_numbersNoExtract actual carrier tracking numbers (e.g., AZ218181365JE) by visiting each shipment's 'Track package' page. Adds ~2s per shipment.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries full burden and does well by disclosing key behavioral traits: it reveals the operation visits each order's detail page (~4s/order), mentions the optional tracking number extraction adds ~2s per shipment, and describes the CSV output format. However, it doesn't cover error handling, authentication requirements, or rate limits.

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 appropriately sized and front-loaded: the first sentence states the core purpose, subsequent sentences add important behavioral context (processing time, CSV columns), and the final sentence provides usage context. Every sentence earns its place with zero waste.

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?

Given the tool's complexity (7 parameters, no annotations, no output schema), the description provides good context about the operation's behavior, timing, and output format. However, it doesn't explain what happens on failure, whether authentication is required, or provide examples of the CSV output. For a tool with no annotations or output schema, it could be more complete about error cases.

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 description coverage is 100%, so the schema already documents all 7 parameters thoroughly. The description doesn't add any parameter-specific information beyond what's in the schema descriptions. It mentions CSV columns which relate to output, not input parameters. Baseline 3 is appropriate when schema does the heavy lifting.

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 clearly states the tool's purpose with specific verbs ('export', 'extract') and resources ('Amazon shipment tracking data', 'CSV file'), and distinguishes it from siblings by focusing on shipment tracking rather than orders, transactions, or gift cards. It specifies the data source (order detail pages) and processing characteristics.

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?

The description provides clear context for when to use this tool ('useful for tracking deliveries and reconciling shipments'), but doesn't explicitly state when not to use it or name alternatives among sibling tools. It implies usage for CSV export of shipment data but lacks explicit comparison with other export tools.

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