Skip to main content
Glama

Count words and grade readability

count_words
Read-onlyIdempotent

Count a text's words, characters, sentences and paragraphs, estimate reading and speaking time, and grade its readability (Flesch reading ease and US school grade), naming the longest sentences. Answers from what you send alone: nothing is fetched or stored.

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_words"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesYour text. Paste an article, a page or a paragraph.

Output Schema

NameRequiredDescriptionDefault
toolYes
toolUrlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so safety and determinism are covered. The description reinforces this with 'nothing is fetched or stored,' but that largely restates the closed-world/read-only annotations and adds little new behavioral detail such as handling of very long input or exact scoring methodology.

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?

A single dense sentence that front-loads the core capability (counting) before the derived outputs (readability, longest sentences) and closes with the trust constraint. Every clause carries information, though the enumeration is long enough that a second sentence or short list would read more cleanly.

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?

An output schema exists, so return values need not be described, and annotations cover the safety profile. What remains is complete for a single-parameter text analysis tool; only minor gaps like input size limits or scoring caveats are absent.

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 one parameter with 100% schema description coverage, and the schema already explains 'Your text. Paste an article, a page or a paragraph.' The description adds no syntax, formatting, or length guidance beyond the schema, so the baseline 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 uses specific verbs and enumerates the exact metrics returned: words, characters, sentences, paragraphs, reading and speaking time, Flesch reading ease, US school grade, and longest sentences. It is clearly distinguishable from URL-based siblings such as grade_website because it operates on text the caller supplies.

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?

'Answers from what you send alone: nothing is fetched or stored' tells the agent the input mode and implicitly rules out the URL-fetching siblings, giving clear context for when to use it. It stops short of naming an explicit alternative or a when-not-to-use condition, so it does not reach the top of the scale.

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