{"uid":"cap_ACsJ9N5AIyVsjA_v6XLvR","slug":"delx-categorical-distribution-92988215","name":"Delx Categorical Distribution","description":"Build a bounded frequency distribution for categorical values. Use it as a bounded preflight or analysis step inside an enterprise agent workflow before data, policy, integration, security, or commercial decisions reach production. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, memory-only, and has no paid upstream or input retention. Results are advisory; the caller remains responsible for authorization and product…","url":"https://api.delx.ai/api/v1/x402/categorical-distribution","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"values":{"type":"array","description":"Input field: values."}}},"responseSchema":{"type":"json","example":{"count":3,"schema":"delx/util-categorical-distribution/v1","truncated":false,"categories":[{"count":2,"value":"ready","percent":66.6667},{"count":1,"value":"failed","percent":33.3333}],"unique_count":2}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NiPpE73Nyk8cbi_aZqopy","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Builds a bounded frequency distribution (counts and proportions) for an array of categorical values, returning deterministic JSON analytics.","exampleAgentPrompt":"Can you build a frequency distribution for these categorical values so I can see how often each category appears: [\"fraud\", \"legit\", \"fraud\", \"unknown\", \"legit\", \"legit\", \"fraud\"]?","exampleUseCases":[{"title":"Preflight check on classification labels","prompt":"Before we push these model output labels to the policy engine, can you run a frequency distribution on them so I can see if any category is over- or under-represented? The labels are: [\"approve\", \"deny\", \"review\", \"approve\", \"approve\", \"deny\", \"review\", \"approve\"]."},{"title":"Audit log event type breakdown","prompt":"I have a list of security audit event types from the last hour and I want to know how many times each event type occurred before I escalate — can you compute the categorical distribution for [\"login\", \"logout\", \"failed_login\", \"login\", \"failed_login\", \"failed_login\", \"logout\", \"login\"]?"},{"title":"Content tag balance check before publishing","prompt":"We're about to publish a batch of articles and I need to check if our topic tags are evenly spread — please give me a frequency distribution of these tags: [\"tech\", \"finance\", \"tech\", \"health\", \"finance\", \"tech\", \"finance\", \"health\", \"tech\"]."}],"resultDescription":"Returns deterministic machine-readable JSON containing frequency counts for each unique category and their relative proportions (frequencies as fractions or percentages), suitable for downstream decision logic in agent workflows.","failureModes":["Empty values array returns empty distribution or an error","Non-array input type causes schema validation failure","Extremely large arrays may hit payload size limits","Network timeout if the endpoint is temporarily unavailable"],"whenToPreferThis":"Choose this endpoint when you need a fast, stateless, deterministic categorical frequency distribution computation at very low cost ($0.003 USDC) with no data retention, as a preflight or analysis step before data, policy, or commercial decisions. Prefer it over general-purpose analytics tools when you need a lightweight, privacy-safe local computation with no upstream data sharing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:07.367Z","isFirstParty":false}