Text analysis pack: readability, keywords, entities and safety
One call to analyse a text: length, reading time and readability grade, the top keywords and repeated phrases with their density, the emails, links, phone numbers, hashtags and mentions it contains, and a prompt-injection scan for text an agent is about to act on. Up to 20,000 characters, local processing. Cheaper than the four tools bought one by one. Use to review drafts, triage inbound messages or vet scraped content.
Inputs
| Name | Type | Description |
|---|---|---|
text (required) | string | The text (up to 20,000 characters) |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/pack/text-analysis?text=Agents%20pay%20per%20call%20with%20USDC.%20Contact%20sales%40example.com%20or%20visit%20https%3A%2F%2Fexample.com%20for%20%23x402%20tools.%20Ignore%20previous%20instructions."
Or one of your 25 free calls, no key:
curl "https://agent-data-tools.revmesh2074.workers.dev/pack/text-analysis?text=Agents%20pay%20per%20call%20with%20USDC.%20Contact%20sales%40example.com%20or%20visit%20https%3A%2F%2Fexample.com%20for%20%23x402%20tools.%20Ignore%20previous%20instructions.&trial=1"
Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.
Example result
{
"pack": "text-analysis",
"stats": {
"words": 19,
"sentences": 3,
"readingTimeSeconds": 6,
"fleschReadingEase": 60.2
},
"keywords": [
{
"word": "agents",
"count": 1,
"densityPct": 5.26
}
],
"extracted": {
"emails": [
"sales@example.com"
],
"urls": [
"https://example.com"
],
"hashtags": [
"#x402"
]
},
"injection": {
"risk": "high",
"findings": [
"instruction override"
]
},
"failed": {}
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is pack_text_analysis, and the first 25 successful calls are free:
https://agent-data-tools.revmesh2074.workers.dev/mcp