{"uid":"cap_oq6QVhIduK5zhRXkeAp8A","slug":"delx-arithmetic-mean-29a5fef2","name":"Delx Arithmetic Mean","description":"Arithmetic mean of numbers. Call when summarizing metrics, scores, or sensor lists mid-pipeline. Returns the mean of a numeric array as JSON. $0.001 USDC per successful call via x402 on Base—deterministic first-party JSON, no API key, no subscription, and nothing is billed on structured validation errors.","url":"https://api.delx.ai/api/v1/x402/mean","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"values":{"type":"array","items":{"type":"number"},"maxItems":10000,"minItems":1,"description":"Numeric samples for stats tools (mean/median/stdev/percentile). Cap 10k numbers."}}},"responseSchema":{"type":"json","example":{"mean":6,"count":5,"schema":"delx/mean/v1"}},"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_586WMeNzYyFUQpNdmLC3Q","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 arithmetic mean of a numeric array and returns the result as JSON, billed per call via x402.","exampleAgentPrompt":"Can you calculate the arithmetic mean of these numbers: 4.2, 7.8, 3.1, 9.0, 5.5, 6.3?","exampleUseCases":[{"title":"Averaging sensor readings in IoT pipeline","prompt":"I've got a batch of temperature sensor readings — 22.1, 23.4, 21.8, 24.0, 22.9 — can you compute the average so I can use it as the normalized value for this time window?"},{"title":"Summarizing test scores for reporting","prompt":"Average these student test scores for me: 88, 92, 75, 84, 91, 78, 95, 63 — I need the mean to include in the class summary report."},{"title":"Aggregating API latency metrics mid-pipeline","prompt":"Take these API response times in milliseconds — 120, 145, 98, 210, 133, 175 — and compute the mean so I can compare against our SLA threshold."}],"resultDescription":"A JSON object containing the arithmetic mean of the submitted numeric array, computed server-side and returned as a first-party deterministic result. No rounding surprises or external dependencies — just the calculated mean value.","failureModes":["Empty array (minItems:1 violated) returns a structured validation error with no charge","Array exceeding 10,000 items (maxItems:10000) returns a validation error with no charge","Non-numeric values in the array trigger a schema validation error","Network timeout or service unavailability results in a failed request; payment only applies on success"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic, no-subscription mean calculation inside an agent pipeline — especially when you already pay per call via x402 and want consistent JSON output without managing a math library or an external analytics service. Ideal for mid-pipeline metric normalization, sensor aggregation, or score summarization where simplicity and auditability matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:31.641Z","isFirstParty":false}