Text Analysis MCP Tools for AI Agents

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:

ToolDescription
text/readabilityReadability Score
text/keywordsExtract Keywords
text/similarityText Similarity
text/levenshteinLevenshtein Distance
text/soundexSoundex
text/metaphoneMetaphone
text/ngramsGenerate Ngrams
text/sentimentBasic Sentiment
text/acronymGenerate Acronym
text/initialsGet Initials
text/maskMask Text
text/lorem-wordsLorem Words
text/title-case-smartSmart Title Case
text/remove-duplicatesRemove 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.

Tool Call: 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.

Tool Call: 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.

Tool Call: 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.

Ready to try TinyFn?

Get your free API key and start building in minutes.

Get Free API Key