{"uid":"cap_R8kB3gPW6ldrKkjB35V2u","slug":"agent402-tools-character-frequency-analyzer-6adc77c5","name":"agent402.tools Character Frequency Analyzer","description":"Analyze the character frequency distribution of a string. Returns counts by category (letters, digits, spaces, punctuation, other) and the top-N most frequent characters with counts and percentages. Deterministic, pure CPU.","url":"https://agent402.tools/api/char-frequency","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"top":{"type":"integer","description":"Number of top characters to return (default 10, max 100)"},"text":{"type":"string","description":"The text to analyze"}}},"responseSchema":{"type":"json","example":{"total":13,"unique":10,"categories":{"other":0,"digits":0,"spaces":1,"letters":10,"punctuation":2},"frequencies":[{"char":"l","count":3,"percent":23.08},{"char":"o","count":2,"percent":15.38}]}},"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_izw821Y94i1MlFUa7-hSZ","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":"Analyzes a string's character frequency distribution, returning counts by category (letters, digits, spaces, punctuation, other) and the top-N most frequent characters with counts and percentages.","exampleAgentPrompt":"Can you analyze the character frequency of this text: 'The quick brown fox jumps over the lazy dog' — show me the top 5 most frequent characters with their counts and percentages, plus the breakdown by category like letters, digits, spaces, and punctuation?","exampleUseCases":null,"resultDescription":"Returns a structured JSON object with category-level counts (letters, digits, spaces, punctuation, other), and a ranked list of the top-N most frequent characters each with their raw count and percentage of total characters.","failureModes":["Missing 'text' field returns a 400 error","'top' value exceeding 100 is rejected","Empty string may return zeroed-out counts or an error","Very large strings may time out or hit payload limits","Non-UTF8 or binary content may cause parse errors"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic, pure-CPU character-level statistical profile of any string — especially when you want both a macro category breakdown (letters vs digits vs punctuation) and a ranked top-N list. Prefer this over manual counting or general NLP endpoints when the task is specifically about character-level frequency rather than word frequency or sentiment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:06.183Z","isFirstParty":false}