{
  "slug": "cumulative-sum",
  "name": "gizza-ai/cumulative-sum",
  "version": "0.1.0",
  "title": "Cumulative Sum Calculator — Running Total of a List of Numbers — gizza.ai",
  "description": "Get the running total (prefix sum) of a list of numbers in your browser, with optional running average, min, and max at each step. Free, private, no sign-up.",
  "tags": [
    "cumulative sum",
    "running total",
    "prefix sum",
    "running average",
    "running minimum",
    "running maximum",
    "number list calculator",
    "accumulate",
    "partial sums",
    "running balance"
  ],
  "category": "math",
  "urls": {
    "page": "https://gizza.ai/tools/cumulative-sum/",
    "markdown": "https://gizza.ai/tools/cumulative-sum/index.md",
    "descriptor": "https://gizza.ai/tools/cumulative-sum/tool.json",
    "deep_link_example": "https://gizza.ai/tools/cumulative-sum/?numbers=1%0A2%0A3%0A4&average=true&min=true&max=true"
  },
  "cli": "gizza tool cumulative-sum \"1\n2\n3\n4\"",
  "tool": {
    "description": "Compute the running total (prefix sum) of a list of numbers. Pass the values in 'numbers' (separated by commas, spaces, or newlines). The result is a table with one row per input value: the value and the cumulative sum up to that point. Optionally set average=true to add a running-average column (the mean of values seen so far), min=true for a running-minimum column, and max=true for a running-maximum column. Use it for prefix sums, running balances, cumulative totals, and step-by-step accumulation.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "average": {
          "description": "Also include a 'running_avg' column — the average (mean) of the values seen up to and including each row.",
          "type": "boolean"
        },
        "max": {
          "description": "Also include a 'running_max' column — the largest value seen up to and including each row.",
          "type": "boolean"
        },
        "min": {
          "description": "Also include a 'running_min' column — the smallest value seen up to and including each row.",
          "type": "boolean"
        },
        "numbers": {
          "description": "The list of numbers, separated by commas, spaces, or newlines (one per line). Decimals and negatives are allowed.",
          "type": "string"
        }
      },
      "required": [
        "numbers"
      ],
      "type": "object"
    }
  }
}