Download + validate report data
download_reportDownload completed Amazon Ads reports with automatic decompression and data-integrity checks. Get reconciled totals and a row sample; large datasets are saved locally as JSON.
Instructions
Download a COMPLETED report, decompress it, run data-integrity checks (column presence, non-negative metrics, daily date coverage) and return reconciled totals plus a row sample. Large result sets are NOT dumped into chat: totals are computed server-side and the full dataset can be saved to a local JSON file via saveAs. Always present the reconciliation totals rather than re-summing sample rows.
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": {
"reportId": "<reportId>"
},
"name": "download_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profileId | No | Amazon Ads profile id (Amazon-Advertising-API-Scope). Omit to use the AMAZON_ADS_PROFILE_ID default. Discover ids with get_profiles. | |
| reportId | Yes | ||
| maxRowsInline | No | How many raw rows to return inline (default 50). | |
| saveAs | No | Optional filename (no directories) to save the full row set as JSON under REPORT_OUTPUT_DIR. |