Skip to main content
Glama

WordMeasure

Count words and characters

count_text
Read-onlyIdempotent

Counts words, characters (with and without spaces), sentences, paragraphs and unique words in a piece of text, and gives reading time, speaking time, a Flesch reading ease score with school grade, and the most used words. Use this whenever exact counts matter, for example an essay word limit, rather than estimating.

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

Input Schema

NameRequiredDescriptionDefault
textYesThe text to count.
reading_wpmNoReading speed in words per minute. Default 238.
speaking_wpmNoSpeaking speed in words per minute. Default 150.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds value beyond them by disclosing the derived metrics returned (reading/speaking time, Flesch ease with grade, most-used words), which the annotations say nothing about. It stops short of describing rounding, precision, or how unique words are normalized.

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?

Two sentences, front-loaded with the enumeration of what is counted and then the usage cue. The list of metrics is long but each item is a distinct capability, so little waste. Slightly dense phrasing with a nested parenthetical, but no filler.

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?

There is no output schema, so the description must enumerate return values, and it does so thoroughly. Combined with full schema coverage for the three inputs and annotations covering the safety profile, an agent has everything needed to call this correctly. Minor omissions like score interpretation are not essential for invocation.

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%, so all three parameters are already documented, including the 238/150 wpm defaults and min/max bounds. The description only implicitly links reading_wpm and speaking_wpm to the reported "reading time" and "speaking time" outputs; it adds no format or tuning guidance beyond the schema. Baseline 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 ("Counts") and then enumerates the exact resources measured: words, characters with and without spaces, sentences, paragraphs, unique words. It goes further to list derived outputs (reading time, speaking time, Flesch score, top words), so an agent can tell this is an analysis tool rather than a case transform or density tool like its siblings.

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 a clear condition for use: "whenever exact counts matter, for example an essay word limit, rather than estimating." That is a real selection signal against guessing. It does not, however, name or exclude sibling tools such as keyword_density or check_platform_limits, so the agent must infer which alternative applies.

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