{
  "slug": "amazon-order-analyzer",
  "name": "gizza-ai/amazon-order-analyzer",
  "version": "0.1.0",
  "title": "Amazon Order Analyzer — Spending by Month, Item, Category — gizza.ai",
  "description": "Paste an Amazon order-history CSV export to summarize total spend by month, top items, and category breakdowns. Browser-only, private, with Markdown or JSON output.",
  "tags": [
    "amazon orders",
    "order history",
    "csv analyzer",
    "spending summary",
    "monthly spend",
    "top items",
    "category breakdown",
    "personal finance",
    "shopping"
  ],
  "category": "utilities",
  "urls": {
    "page": "https://gizza.ai/tools/amazon-order-analyzer/",
    "markdown": "https://gizza.ai/tools/amazon-order-analyzer/index.md",
    "descriptor": "https://gizza.ai/tools/amazon-order-analyzer/tool.json",
    "deep_link_example": "https://gizza.ai/tools/amazon-order-analyzer/?csv=Order%20Date%2COrder%20ID%2CTitle%2CCategory%2CQuantity%2CItem%20Total%0A2024-01-05%2C111-1111111-1111111%2CUSB-C%20Cable%2CElectronics%2C2%2C%249.99&output=summary&top=10"
  },
  "cli": "gizza tool amazon-order-analyzer \"Order Date,Order ID,Title,Category,Quantity,Item Total\n2024-01-05,111-1111111-1111111,USB-C Cable,Electronics,2,$9.99\"",
  "tool": {
    "description": "Parse an Amazon order-history CSV export and summarize spending. Handles both common export shapes — the classic Order History Report (Order Date, Title, Category, Quantity, Item Total, Order ID) and the newer Request My Data / Retail.OrderHistory export (Order Date, Product Name, Quantity, Total Owed) — matching columns case-insensitively and tolerating currency symbols/thousands separators in amounts. Reports: total spend with item and order counts and date range, a spend-by-month table, the top items ranked by spend (grouped by title), and a per-category breakdown when the export includes a Category column. output='summary' (default) is Markdown; 'json' is a structured object. top caps the item list (default 10, max 50). Runs entirely in the sandbox — no upload, no network.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "csv": {
          "description": "Your Amazon order-history CSV export, pasted whole (including the header row). Works with the classic Order History Report (Order Date, Title, Category, Quantity, Item Total, Order ID) and the newer Request My Data / Retail.OrderHistory export (Order Date, Product Name, Quantity, Total Owed). Column names are matched case-insensitively; currency symbols and thousands separators in amounts are tolerated.",
          "type": "string"
        },
        "output": {
          "default": "summary",
          "description": "Output shape. 'summary' (default) is a Markdown report: a total-spend caption, a spend-by-month table, top items by spend, and a category breakdown (when a Category column is present); 'json' is a structured object with the same data.",
          "enum": [
            "summary",
            "json"
          ],
          "type": "string"
        },
        "top": {
          "default": 10,
          "description": "How many top items (by total spend) to list (1-50). Line items are grouped by their exact title/product name and quantities summed. Default 10.",
          "maximum": 50,
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "csv"
      ],
      "type": "object"
    }
  }
}