{"uid":"cap_C7iWHEKk0j-ZNr1yLCsRY","slug":"one-engine-cumulative-sum-t2-73abc910","name":"ONE Engine Cumulative Sum (T2)","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/t2?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.0007","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.0007/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jM8EiKKl5zTcb1i6bOjn2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0007","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the cumulative sum of an array of up to 1000 numbers, with optional scaling, offsetting, and output constraints.","exampleAgentPrompt":"Can you compute the cumulative sum of these values: [3, 7, 2, 15, 8, 4], rounding results to 2 decimal places?","exampleUseCases":[{"title":"Running total of daily sales","prompt":"I have daily sales figures for the past week — [120, 340, 210, 450, 380, 290, 510] — can you compute the running total so I can see how revenue accumulated day by day?"},{"title":"Cumulative frequency for histogram","prompt":"Here are my frequency counts per bucket: [5, 12, 23, 18, 9, 4, 1]. Can you compute the cumulative sums so I can plot a cumulative distribution chart?"},{"title":"Progressive budget spend tracking","prompt":"Compute the cumulative sum of these monthly expenses — [800, 1250, 430, 970, 1100] — and cap each output value at a maximum of 5000 so I can track budget burn rate against my limit."}],"resultDescription":"Returns a JSON object containing the cumulative sum array derived from the input values, with optional constraints applied such as clamping to min/max bounds, scaling by a factor, adding an offset, rounding to a specified number of decimal digits, and resizing the output array length.","failureModes":["Input array exceeds 1000 elements — request rejected","Non-finite values (NaN, Infinity) in input array — validation error","Missing required 'values' field — 400 bad request","Payment not provided or insufficient — 402 Payment Required","Malformed JSON body — parsing error"],"whenToPreferThis":"Choose this endpoint when you need a cheap, fast, pay-per-call cumulative sum computation without spinning up local compute, especially in an agentic pipeline that uses x402 micropayments on Base. Ideal for autonomous agents that need on-demand numerical prefix-sum calculations with optional normalization (scaling, offsetting, clamping) as part of a larger workflow. Prefer over local computation when the agent lacks a math execution environment or when consistency and simplicity of a hosted API is preferred.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:46.675Z","isFirstParty":false,"canonicalSlug":"one-engine-cumulative-sum-t2-73abc910"}