Skip to main content
Glama

Agent Data Tools: Utilities

Text analysis: readability, keywords, entities and safety

pack_text_analysis
Read-only

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. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "<text>"
    },
    "name": "pack_text_analysis"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe text (up to 20,000 characters)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations it discloses the 20,000-character cap, that processing is local, the pricing model ($0.01/call via x402 USDC or a card key), the 10-free-call allowance, that failed calls are free, and that every successful call is charged so repeats are not free. That billing/no-cache behavior is material context an agent would not get from readOnlyHint/idempotentHint alone, and it is consistent with idempotentHint=false.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Capability list is front-loaded and the sentences are dense rather than padded. The final pricing sentence is crammed with four separate facts and the closing 'reads or computes only and changes nothing' partly restates the annotations, but nothing is truly expendable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the burden of saying what comes back, and it does so by enumerating each analysis dimension. Limits, cost, side-effect profile, and intended use cases are all covered, so an agent can decide and call without further information.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There is a single parameter and the schema already documents it at 100% coverage, including the same 20,000-character limit the description repeats. The description adds no format, encoding, or content-type guidance beyond the schema, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ('One call to analyse a text') and then enumerates exactly what is produced: length, reading time, readability grade, keyword/phrase density, detected emails/links/phones/hashtags/mentions, and a prompt-injection scan. That enumeration distinguishes it from narrow siblings like text_stats or text_keyword_density without ambiguity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives concrete usage contexts ('review drafts, triage inbound messages or vet scraped content') and frames itself as the bundle alternative to 'the four tools bought one by one'. It does not name those alternatives or state when a narrower single-purpose tool would be preferable, so it stops short of full explicit routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources