{"uid":"cap_MO61oOOnhJKNmaTuXuV4x","slug":"signaldesk-ai-statistical-mode-calculator-1f593452","name":"SignalDesk AI – Statistical Mode Calculator","description":"Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.","url":"https://x402-agent.kariguetoazul.workers.dev/api/stats/mode?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"values":{"type":"array","items":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000},"maxItems":1000,"minItems":1,"description":"Up to 1000 finite observations."}}},"responseSchema":{"type":"json","example":{"modes":[2,3],"frequency":2}},"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_CoFjE-LjR_MqxYpPEMiEa","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 mode(s) and their frequency from an array of up to 1000 numeric observations","exampleAgentPrompt":"What's the mode of these numbers: [2, 3, 3, 4, 5, 2, 3, 7, 2, 3]? I want to know which value appears most often and how many times it shows up.","exampleUseCases":[{"title":"Survey response frequency analysis","prompt":"I have these survey ratings from 50 respondents: [1,2,3,3,4,5,3,2,3,1,4,3,5,3,2,3,4,3,1,3] — tell me which rating was given most often and how many times."},{"title":"Quality control most common defect code","prompt":"Here are the defect codes logged on the factory floor today: [101,202,101,303,202,101,404,101,202,303,101] — find the most frequent defect code and its count."},{"title":"Grade distribution mode for student scores","prompt":"Find the mode of these student test scores so I know the most common grade: [72,85,91,85,78,85,91,72,85,63,85,78]."}],"resultDescription":"Returns a JSON object with a 'modes' array containing all values that appear most frequently (supports multimodal datasets), and a 'frequency' integer indicating how many times each mode value occurs in the input.","failureModes":["Empty array input returns validation error (minItems:1 not met)","Array exceeds 1000 items returns error (maxItems:1000)","Non-numeric or non-finite values (NaN, Infinity) may be rejected","Values outside ±1,000,000,000,000,000 range are rejected","Payment not provided or insufficient USDC returns 402 error","Network timeout on Cloudflare Worker edge"],"whenToPreferThis":"Use this endpoint when you need a fast, paid, pay-per-call statistical mode computation on up to 1000 numeric observations without setting up your own compute infrastructure. Prefer it over general-purpose code execution when you want a deterministic, bounded-cost API call with a clear JSON response including multimodal support (ties). Ideal for agents that need lightweight descriptive statistics as a building block without spinning up a full analytics pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:41:49.356Z","isFirstParty":false,"canonicalSlug":"signaldesk-ai-statistical-mode-calculator-1f593452"}