Skip to main content
Glama

ScorpTech x402 Tools

Text Stats

text_stats
Read-onlyIdempotent

Text statistics: characters, words, unique words, sentences, paragraphs, reading/speaking time, Flesch readability (English), language detection (27 languages/scripts), top keywords. Returns JSON with: characters, characters_no_spaces, bytes, words, unique_words, sentences, paragraphs, lines. Price: $0.005 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/text-stats

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
topNoTop keywords 0-50, default 10
wpmNoReading speed 50-1000, default 238
textYesText to analyse (query string; keep under ~6 KB for URL limits)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint, idempotentHint, destructiveHint=false), the description discloses two operationally important facts the agent could not otherwise know: each successful call costs $0.005 USDC via x402 on Base or Solana, and the same functionality is reachable over plain HTTPS at the given URL. It also discloses the language coverage limit and that Flesch scoring is English-only. It does not state error behavior or whether the paid and HTTPS endpoints differ in output.

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

Conciseness3/5

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

The statistics list is front-loaded, which is good, but the first sentence's enumeration ('characters, words, unique words, sentences, paragraphs') is largely repeated in the second sentence's return-field list. Roughly one sentence of content is duplicated, though the price and HTTPS endpoint lines each carry unique information.

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?

With readOnly and idempotent annotations already covering the safety profile and no output schema present, the description does the necessary work by enumerating the returned JSON fields and flagging the paid-call requirement and the ~6 KB practical text limit via the schema. What is missing is anything about failure modes or the difference between the x402 and HTTPS paths.

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 100% and each of the three parameters is documented inline, including the default reading speed of 238 wpm and the 50-1000 bound. The description reinforces meaning by naming 'top keywords' and 'reading/speaking time' as outputs, which ties wpm and top to visible results, but adds no syntax or format detail beyond the schema.

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 specific resource (text) and enumerates the exact statistics produced: characters, words, unique words, sentences, paragraphs, reading time, Flesch readability, language detection, and keywords. The scope is clear enough to distinguish it from a manipulation tool like text_clean, but it never explicitly contrasts itself with the statistics-adjacent siblings (stats_describe, scam_text_score), leaving that inference to the agent.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use statement and no named alternative. An agent must infer from the statistic list that this is for read-only text analysis, and the only conditional guidance given is the parenthetical that Flesch readability is English-only, plus the fact that language detection covers 27 languages.

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