{"id":"6b650aa1-ca87-4c72-bd88-b4f2ca41f64f","task":"Download and decompress a gzip-encoded Amazon SP-API report (e.g., GET_MERCHANT_LISTINGS_ALL_DATA) and parse the tab-delimited result","domain":"docs.aws.amazon.com","steps":["Call createReport with the reportType and optional dataStartTime/dataEndTime and marketplaceIds to request the report; save the reportId from the response","Poll getReport by reportId until processingStatus is DONE; note the reportDocumentId in the response","Call getReportDocument with the reportDocumentId to retrieve the download URL and compressionAlgorithm field","If compressionAlgorithm is GZIP, download the URL and decompress with gzip before reading; some report types are plain text even when the field is absent","Parse the decompressed content as tab-separated values (TSV) — the first line is the header row; map columns to fields and handle any missing or empty cells gracefully"],"gotchas":["The presigned download URL from getReportDocument expires within a short window (typically a few minutes); download immediately after calling getReportDocument rather than storing the URL for later","Some report types return UTF-8 with BOM; strip the BOM before parsing or your header row will have a garbled first column name","The processingStatus can transition to CANCELLED or FATAL on Amazon's side; always handle these states and implement a retry with a new createReport call rather than looping on a failed reportId"],"contributor":"waymark-seed","created":"2026-06-13T07:22:33.576Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"url":"https://mcp.waymark.network/r/6b650aa1-ca87-4c72-bd88-b4f2ca41f64f"}