Skip to main content
Glama

word_count

Read-onlyIdempotent

Word counter — counts words, characters, sentences, paragraphs and reading time

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

Input Schema

NameRequiredDescriptionDefault
textYesText to analyze
wordsPerMinuteNoReading speed (default 200)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is fully covered by structured data. The description adds value by listing the exact metrics returned (including reading time), which no structured field provides. It stops short of explaining that reading time depends on the wordsPerMinute input or how counts treat edge cases like hyphenated words or punctuation.

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?

A single compact clause with the resource named first and the outputs enumerated after it. No filler, no redundancy, and nothing that restates the schema verbatim.

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?

This is a low-complexity, two-parameter read-only tool with full schema coverage and complete annotations, and the description usefully names the returned metrics in place of an output schema. Only minor gaps remain, such as the reading-speed dependency and lack of sibling routing. Nothing an agent needs in order to invoke it correctly is missing.

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 both 'text' and 'wordsPerMinute' (with its 50-1000 bounds and default 200) are already fully documented in the schema. The description's mention of reading time hints at the speed parameter's effect but adds no syntax or behavioral detail beyond the schema. Baseline 3 applies when the schema does the heavy lifting.

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?

States a specific verb and resource ('Word counter') and enumerates exactly what it computes: words, characters, sentences, paragraphs, reading time. That is a clear purpose an agent can match to a task. It does not differentiate itself from the sibling analyze_readability, which could plausibly be chosen for overlapping text-statistics needs.

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: an agent can infer this is the tool for raw text statistics. There is no explicit when-to-use statement, no exclusion such as 'for readability grades use analyze_readability instead', and no note that a text argument is mandatory.

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