{"uid":"cap_SQtrK00hq3cLncWenWMuL","slug":"one-engine-cumulative-sum-e3f74d0b","name":"ONE Engine Cumulative Sum","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v3/numeric/cumulative-sum/t6?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["values"],"properties":{"max":{"type":"number"},"min":{"type":"number"},"size":{"type":"integer"},"digits":{"type":"integer"},"factor":{"type":"number"},"offset":{"type":"number"},"values":{"type":"array","description":"Finite numbers, maximum 1000"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ULNE0eHwEXJM8P6pK1eJ9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the cumulative (running) sum of an array of numbers, with optional scaling, offset, and range constraints.","exampleAgentPrompt":"I have this list of daily sales figures — [120, 85, 200, 160, 95, 310] — can you compute the cumulative running total for me, scaled by a factor of 1.1 and offset by 50?","exampleUseCases":[{"title":"Running total for financial ledger","prompt":"I have a list of daily expense amounts — [45.5, 120, 33.2, 87.6, 210] — please calculate the cumulative running sum so I can see how spending has accumulated day by day."},{"title":"Prefix sums for algorithm preprocessing","prompt":"I need prefix sums for this array of integers: [3, 7, 2, 9, 5, 11, 4] — can you compute the cumulative sum, rounding results to 2 decimal digits?"},{"title":"Sensor data accumulation with scaling","prompt":"Take these sensor readings — [0.5, 1.2, 0.8, 2.1, 1.7] — and give me the cumulative sum scaled by a factor of 100 and offset by 0, so I can track total accumulated signal strength."}],"resultDescription":"Returns a JSON object containing the cumulative (running) sum array computed from the input values, with optional scaling factor, offset, digit rounding, and min/max clamping applied to each element in the output sequence.","failureModes":["Input array exceeds 1000 elements — request rejected","Non-finite numbers (NaN, Infinity) in the values array — validation error","Missing required 'values' field — 400 bad request","Payment failure via x402 — 402 Payment Required","Empty array input — may return empty result or error"],"whenToPreferThis":"Choose this endpoint when you need a quick, cheap, pay-per-call cumulative sum computation with optional parameter controls (scaling, offset, clamping, rounding) without setting up your own compute infrastructure. Ideal for autonomous agents needing on-demand mathematical transformation of numeric sequences at $0.004 USDC per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:01.400Z","isFirstParty":false,"canonicalSlug":"one-engine-cumulative-sum-1eeaa6ea"}