{"uid":"cap_sfjFPoM1QN1kAV5u9idmL","slug":"delx-avg-n-e6c1a68f","name":"Delx Avg N","description":"Average of a numeric list. Call when you need a mean for agent metrics samples. Returns average and count for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/avg-n","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"values":{"type":"array","description":"Input field: values."}}},"responseSchema":{"type":"json","example":{"count":3,"value":4,"schema":"delx/util-avg-n/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_dvLOT7PBF9WGDxsbr7ca-","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 and count of a supplied list of numbers, useful for agent metric aggregation.","exampleAgentPrompt":"Can you calculate the average of these numbers for me: [12.5, 9.3, 14.7, 11.2, 10.8]?","exampleUseCases":[{"title":"Agent latency metric rollup","prompt":"I have these API response times in milliseconds — 120, 95, 210, 88, 150, 173 — can you calculate the mean so I can track our average latency?"},{"title":"Sales figure mean calculation","prompt":"Here are last week's daily sales totals: 4200, 3800, 5100, 4700, 3950, 4400, 5300 — what's the average daily revenue?"},{"title":"Sensor reading aggregation","prompt":"I collected these temperature readings from my IoT sensors: 22.1, 21.8, 23.4, 22.7, 21.5 — compute the average so I can compare against the baseline."}],"resultDescription":"Returns the arithmetic mean (average) and the count of elements in the supplied numeric array, as a local JSON response with no data retention.","failureModes":["Empty values array returns an error or undefined average","Non-numeric values in the array cause a validation failure","Malformed request body (missing values field) returns a 400-level error","Payment failure via x402 protocol prevents execution"],"whenToPreferThis":"Choose this endpoint when you need a quick, stateless mean computation over a numeric list without shipping a math library or standing up compute infrastructure — especially in agent pipelines where you want a pay-per-use micro-computation with no credential setup. Ideal for summarising metric samples, sensor readings, or cost arrays inline in an agentic workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:46.056Z","isFirstParty":false}