{"uid":"cap_JQ0lZAiMr9YiecUb2MoQ-","slug":"agent-micro-text-stats-d97937e5","name":"Agent Micro Text Stats","description":"Advanced micro-tools for AI agents: cryptographic randomness, text analysis, math helpers, date arithmetic, web metadata, and IP intelligence. All under $0.01 per request, paid in USDC via x402.","url":"https://agent-micro.annushka1190.workers.dev/v1/text/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"],"properties":{"body":{"type":"object"},"type":{"const":"http"},"method":{"enum":["POST"]},"bodyType":{"const":"json"}}}}},"responseSchema":{"type":"json","example":{"ok":true}},"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_7WhkjVbNQIJMSYpTFTrdr","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":"Analyzes a text string and returns statistical metrics such as word count, character count, sentence count, and readability scores.","exampleAgentPrompt":"Can you analyze this paragraph and tell me the word count, character count, and sentence count: 'Artificial intelligence is transforming the world at an unprecedented pace. Every industry from healthcare to finance is being reshaped by machine learning models.'","exampleUseCases":[{"title":"Readability check for blog post","prompt":"I'm about to publish a blog post — can you run text stats on this intro paragraph to tell me how many words, sentences, and characters it has: 'The future of remote work is uncertain, but one thing is clear: flexibility is here to stay. Companies across the globe are rethinking office policies.'"},{"title":"Word count enforcement for submission","prompt":"I need to verify my 250-word essay doesn't exceed the limit — can you count the words and sentences in this text: 'Climate change poses an existential threat to biodiversity worldwide. Scientists agree that immediate action is required to curb carbon emissions and prevent catastrophic warming.'"},{"title":"Content complexity analysis for editor","prompt":"Before I send this to the editor, can you give me a full text breakdown — word count, character count, and sentence count — for this passage: 'The quarterly earnings report exceeded analyst expectations by a wide margin, driven primarily by strong performance in the cloud division.'"}],"resultDescription":"A JSON object with ok: true and computed text statistics including metrics such as word count, character count, sentence count, and potentially readability scores for the submitted text.","failureModes":["Missing or empty input body returns a validation error","Non-text or malformed JSON body may return a 400 error","Payment not provided or insufficient USDC causes a 402 Payment Required response","Extremely large text bodies may hit Cloudflare Workers size limits","Network timeouts on the Workers edge in rare cases"],"whenToPreferThis":"Choose this endpoint when you need lightweight, cheap ($0.003 USDC) on-demand text statistics for an AI agent pipeline — especially when you want to verify text length, complexity, or sentence structure without standing up your own NLP infrastructure. Best for quick inline checks during content generation, editing, or validation workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:41:39.317Z","isFirstParty":false}