{"uid":"cap_1sQcCHgToa9uAxlHjev8o","slug":"agent-link-text-stats-0fdfa146","name":"Agent Link Text Stats","description":"Word/sentence/char counts, average word length, and unique-token ratio.","url":"https://agent-link.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_8oMMVl9EbtSxymxoWcYR3","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":"Computes statistical metrics (word count, character count, sentence count, readability, etc.) for a given piece of text","exampleAgentPrompt":"Can you run text stats on this paragraph and tell me how many words, sentences, and characters it has: 'Artificial intelligence is transforming every industry. Agents now handle tasks that once required human expertise. The future looks automated and efficient.'?","exampleUseCases":[{"title":"Readability check before publishing","prompt":"Before I post this blog intro, can you give me the word count, sentence count, and readability stats? Here's the text: 'Machine learning has reshaped how we think about data. Patterns once invisible to humans are now surfaced in seconds. This guide will walk you through the basics.'"},{"title":"Content length compliance check","prompt":"I need to verify this product description meets our 50–100 word guideline — can you count the words and characters for me? The text is: 'Our ergonomic chair supports your posture through long work sessions with adjustable lumbar support, breathable mesh back, and smooth-rolling casters designed for hardwood floors.'"},{"title":"Comparing text complexity across drafts","prompt":"Can you get text stats on this paragraph so I can compare it to my earlier draft for complexity and length? The paragraph is: 'The protocol leverages cryptographic primitives to establish trust between decentralized nodes, ensuring consensus without a central authority.'"}],"resultDescription":"A JSON object with computed text metrics such as word count, character count, sentence count, average word length, and potentially readability scores (e.g. Flesch-Kincaid). The response includes an `ok: true` flag on success.","failureModes":["Missing or empty `input` body returns a validation error","Non-string or malformed text body may return a 400 or error response","Payment not completed via x402 results in a 402 Payment Required response","Extremely large text inputs may time out or be rejected"],"whenToPreferThis":"Choose this endpoint when you need lightweight, cheap ($0.003 USDC), keyless text statistics computed on demand — word count, character count, sentence count, or readability metrics — without setting up NLP libraries or paying for heavier language model APIs. Ideal for pipelines that validate content length, measure complexity before publishing, or compare drafts programmatically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:35:34.504Z","isFirstParty":false}