Skip to main content
Glama

Lookup Kit

text_stats

Read-only

Word counter, character count and reading time. Count characters (with and without spaces), words, sentences, paragraphs and lines in a text, with reading and speaking time and the most common words. Price: $0.002 per call (x402, USDC on Base).

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": "text_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false, so the description earns credit for the extra context it does supply: the $0.002 per-call cost and the x402/USDC-on-Base payment mechanism, which materially affects whether an agent should invoke it. It omits the 8000-character input ceiling and any error behavior for oversized or empty inputs.

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?

The lead sentence front-loads the core capability and the rest packs the metric list and cost into two sentences with no filler. There is minor redundancy between 'Word counter, character count' and the second sentence's 'Count characters... words', but nothing wasteful.

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

Completeness4/5

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

For a one-parameter, annotation-backed tool with no output schema, the description is nearly complete: it spells out every returned metric, so an agent knows what it will get back. The gaps are the input length limit and behavior on invalid input, which are the only things left unexplained.

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?

Schema description coverage is 0%, so the description must carry the parameter burden; it only says 'in a text', which matches the obvious 'text' property but says nothing about the minLength=1 / maxLength=8000 constraints that determine whether a call will fail. With a single self-evident parameter this is adequate but leaves a real constraint undocumented.

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

Purpose4/5

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

The description names a concrete resource (text) and enumerates the exact metrics produced: characters with/without spaces, words, sentences, paragraphs, lines, reading/speaking time, and most common words. An agent can tell this is a text-analysis tool, though it never explicitly distinguishes itself from the sibling 'stats' tool.

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

Usage Guidelines3/5

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

Usage is only implied by the enumerated metrics — an agent can infer 'use this to analyze a string of text' but there is no explicit when-to-use, when-not-to-use, or named alternative such as 'stats' or 'text_split'. The pricing line adds practical context but not selection guidance.

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