Your content agent says a blog post is "about 500 words" when it's actually 847. For content platforms, SEO tools, and publishing agents, approximate word counts don't cut it. These tools give exact text statistics.
All Text Analysis Tools (14)
Your agent gets access to 14 text analysis tools via the /mcp/text/ endpoint. Here's the complete list:
| Tool | Description |
|---|---|
text/readability | Readability Score |
text/keywords | Extract Keywords |
text/similarity | Text Similarity |
text/levenshtein | Levenshtein Distance |
text/soundex | Soundex |
text/metaphone | Metaphone |
text/ngrams | Generate Ngrams |
text/sentiment | Basic Sentiment |
text/acronym | Generate Acronym |
text/initials | Get Initials |
text/mask | Mask Text |
text/lorem-words | Lorem Words |
text/title-case-smart | Smart Title Case |
text/remove-duplicates | Remove Duplicate Words |
Agent Scenarios
Here's how real agents use these tools:
1. Content management agent
A CMS agent enforces article length requirements by counting exact words. text/word-count returns precise metrics.
text/word-count
{ "text": "Your article content here..." }
2. Reading time estimator
A publishing agent calculates accurate reading time for blog posts to display in article headers.
text/reading-time
{ "text": "Full article content..." }
3. SEO content agent
An SEO agent analyzes text statistics including sentence count, average word length, and readability metrics.
text/analyze
{ "text": "Content to analyze..." }
MCP Setup
Add text analysis tools to your agent in under 2 minutes. Choose your client:
Claude Desktop / Claude Code
Add this to your MCP config:
{
"mcpServers": {
"tinyfn-text": {
"url": "https://api.tinyfn.io/mcp/text/",
"headers": {
"X-API-Key": "your-api-key"
}
}
}
}
Cursor
Go to Settings > MCP and add a new server:
- Type: SSE
- URL:
https://api.tinyfn.io/mcp/text/sse - Headers:
X-API-Key: your-api-key
Tip: Use the category-specific endpoint (/mcp/text/) for the best experience. The all-in-one endpoint (/mcp/all/) works too but has 500+ tools which some clients handle less efficiently.
When to Use These Tools
Use text analysis MCP tools when your agent needs to:
- Guarantee correctness — when wrong answers have real consequences
- Process user data — when you're operating on actual user input, not hypothetical examples
- Maintain consistency — when the same input must always produce the same output
You don't need these tools for casual conversation or rough estimates. Use them when precision matters.
Ready to add text analysis tools to your agent?
Get Free API Key 100 requests/month free. No credit card required.Frequently Asked Questions
Why can't LLMs count words accurately?
LLMs process text as tokens which don't correspond 1:1 with words. When asked to count, they estimate based on text length rather than actually counting, leading to significant inaccuracies.
What text metrics does TinyFn provide?
TinyFn provides word count, character count (with and without spaces), sentence count, paragraph count, reading time estimation, and comprehensive text statistics.
How is reading time calculated?
Reading time is calculated based on the standard adult reading speed of approximately 200-250 words per minute, with the exact text word count as the basis.