Skip to main content
Glama

analyze_word_count

Read-only

Word Counter — Count words, characters, sentences, paragraphs, and reading time in a text or uploaded document (.txt/.pdf/.docx). [category: analyze]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNoAlternative: upload a .txt, .pdf, or .docx document (max 25MB).
textNoPaste the text to count. Leave blank if you are uploading a document instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / text / x-ui
      Added value: +{
      +  "multiline": true
      +}
  2. Changed1 schema field changed
    • addedInput schema / x-require-one-of
      Added value: +[
      +  [
      +    "file"
      +  ],
      +  [
      +    "text"
      +  ]
      +]
  3. Changed2 schema fields changed
    • changedInput schema / properties / text / description
      Previous value: -"Text to analyse. Required unless 'file' is provided."New value: +"Paste the text to count. Leave blank if you are uploading a document instead."
    • addedInput schema / properties / text / title
      Added value: +"Text to count"
  4. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "text"
      -]New value: +[]
  5. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false. The description adds supported file types and the list of computed metrics, which is useful. It does not disclose output format or how reading time is estimated, but for a simple read-only analyzer this is a minor gap.

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 efficient sentence that front-loads the tool's purpose and output metrics, followed by supported input types. No wasted words; the category tag is minor and does not detract.

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?

For a low-complexity, read-only analysis tool with fully documented parameters, the description covers inputs, outputs, and file restrictions. It would benefit from a brief note on the response shape, but the tool's behavior is otherwise sufficiently clear.

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%, with both 'text' and 'file' parameters fully described. The description reinforces the input options ('text or uploaded document') but adds no meaning beyond the parameter descriptions already in the schema.

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 names a specific verb ('Count') and a clear resource: words, characters, sentences, paragraphs, and reading time. It also specifies input modes (text or uploaded .txt/.pdf/.docx), making it easy to distinguish from siblings like analyze_word_frequency or analyze_readability.

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 provides clear context: this tool is for counting text metrics from pasted text or uploaded documents. It does not explicitly exclude alternatives or state when not to use it, but the intended use case is unambiguous from the description alone.

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