{"uid":"cap_stXXTbvkCp8ko9qQ2ripQ","slug":"agent402-tools-descriptive-statistics-0c49beaa","name":"agent402.tools Descriptive Statistics","description":"Descriptive statistics for an array of numbers: count, sum, mean, median, mode, min, max, range, variance, stddev, and percentiles.","url":"https://agent402.tools/api/stats","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["numbers"],"properties":{"numbers":{"description":"Array of numbers"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["count","mean","median","stddev"],"properties":{"mean":{"type":"integer"},"count":{"type":"integer"},"median":{"type":"number"},"stddev":{"type":"integer"}}}}}}},"responseSchema":{"type":"json","example":{"mean":5,"count":8,"median":4.5,"stddev":2}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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_R7dux-SZiG1_tvXlEF7yD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes descriptive statistics (count, sum, mean, median, mode, min, max, range, variance, stddev, percentiles) for an array of numbers.","exampleAgentPrompt":"Can you calculate the full descriptive statistics — mean, median, standard deviation, variance, min, max, and percentiles — for this array of numbers: [4, 7, 2, 9, 1, 5, 8, 3]?","exampleUseCases":[{"title":"Summarize survey response scores","prompt":"I have these survey scores from 50 respondents: [3, 5, 4, 2, 5, 1, 4, 3, 5, 4, 2, 3, 4, 5, 1, 3, 4, 4, 5, 2, 3, 4, 5, 1, 3, 4, 4, 5, 2, 3, 4, 4, 5, 1, 3, 4, 5, 2, 3, 4, 4, 5, 1, 3, 4, 5, 2, 3, 4, 4]. Can you compute descriptive statistics so I can understand the distribution — mean, median, mode, std dev, and percentiles?"},{"title":"Analyze sales figures for reporting","prompt":"Here are last month's daily sales totals in dollars: [1200, 1350, 980, 1100, 1450, 1300, 1250, 1150, 1400, 1050, 1200, 1300, 1100, 1250, 1350, 1200, 1400, 1150, 1300, 1450, 1200, 1100, 1350, 1250, 1300, 1200, 1150, 1400, 1250, 1300]. Please calculate the full stats including mean, variance, min, max, and the 25th and 75th percentiles for my report."},{"title":"Check test score distribution","prompt":"My class got the following test scores: [72, 85, 91, 64, 78, 88, 95, 70, 83, 77, 89, 92, 68, 74, 86]. Can you run descriptive statistics on these — I need the mean, median, standard deviation, and range to see how spread out the scores are?"}],"resultDescription":"A JSON object containing count, sum, mean, median, mode, min, max, range, variance, standard deviation, and percentile values computed from the input array.","failureModes":["Empty or missing array input returns an error","Non-numeric values in the array cause a validation error","Malformed JSON body returns a 400 bad request","Payment failure via x402 protocol prevents execution"],"whenToPreferThis":"Choose this endpoint when you need a comprehensive statistical summary of a numeric dataset in a single call, rather than computing individual statistics separately. Ideal for agents that need to report or reason about distributions without running local computation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:17:45.586Z","isFirstParty":false}