{"uid":"cap_71RNLsMGU89Ze8txmpQnh","slug":"one-engine-array-sum-ff135ed7","name":"ONE Engine Array Sum","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v1/array/sum?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"values":{"type":"array","description":"Array of finite numbers, maximum 1000 items"}}},"responseSchema":{"type":"json","example":{"count":3,"value":7}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_McCqHbc_qRKzi-5P0GRti","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the sum and count of an array of up to 1000 numbers via a pay-per-call API on Base using x402.","exampleAgentPrompt":"Add up this list of numbers for me — [12.5, 7, 3.8, 42, 100] — and tell me the total and how many items there are.","exampleUseCases":[{"title":"Totaling transaction amounts","prompt":"I have a list of transaction amounts — [9.99, 24.50, 3.75, 150.00, 7.25] — can you sum them all up and tell me how many transactions there are?"},{"title":"Aggregating sensor readings","prompt":"I've got 10 temperature sensor readings from today: [72.1, 68.4, 70.9, 73.2, 71.0, 69.5, 74.1, 72.8, 70.3, 71.6] — can you total them and tell me how many readings there were?"},{"title":"Summing inventory counts","prompt":"Here's a list of stock quantities across warehouses: [340, 120, 87, 455, 210] — add those up and let me know the total and count of warehouses."}],"resultDescription":"Returns a JSON object with 'count' (number of elements in the input array) and 'value' (the computed sum of all elements). Example: {\"count\":3,\"value\":7}.","failureModes":["Array exceeds 1000 items — request rejected","Non-finite numbers (Infinity, NaN) in the array — validation error","Malformed or missing 'values' field — bad request error","Payment failure via x402 — 402 Payment Required response","Empty array — may return count 0 and value 0"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a lightweight, on-demand numeric summation without bundling heavier computation libraries, especially in agentic workflows on Base where x402 micropayment infrastructure is already in use. Ideal for summing up to 1000 numbers with minimal latency at a low per-call cost of $0.001 USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:26.674Z","isFirstParty":false,"canonicalSlug":"one-engine-array-sum-ff135ed7"}