Skip to main content
Glama

word-counter

Read-onlyIdempotent

Count words, characters, sentences, paragraphs, and reading time in a block of text. Words are Unicode-aware (handles non-Latin scripts). Reading time assumes 240 wpm.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe text to analyze. Capped at 60,000 characters. Larger inputs should be split client-side.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
wordsYesWord count.
sentencesYesSentence count.
charactersYesCharacter count including spaces.
paragraphsYesParagraph count.
reading_minutesYesEstimated reading time in minutes at 240 wpm.
characters_no_spacesYesCharacter count excluding spaces.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is known. The description adds behavioral context about Unicode-awareness for non-Latin scripts and the 240 wpm reading-time assumption, which are not captured in the annotations or schema.

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

Conciseness5/5

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

Two concise sentences: one states the function, one adds a key behavioral note. The third about reading time is also brief and necessary. No filler or repetition of schema annotations.

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?

The tool is simple with full parameter documentation, a complete output schema expected, and annotations covering safety. The description covers the main function, Unicode handling, and reading-time assumption. Nothing important is missing for an agent to invoke this tool correctly.

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 coverage is 100% with a detailed description of the 'text' parameter including the 60,000-character cap and client-side split guidance. The tool description adds no additional parameter semantics 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 uses a specific verb 'count' and enumerates the seven kinds of counts (words, characters, sentences, paragraphs, reading time) for a block of text. This distinguishes it from sibling tools like character-counter and vowel-counter, which likely target individual metrics.

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?

The description clearly implies usage: whenever the agent needs any of the listed text metrics. It does not explicitly name alternative tools or exclusions, but the breadth of counted metrics provides adequate context for selecting this tool over more specialized siblings.

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