Skip to main content
Glama

Word frequency counter

hopi_word_frequency_counter
Read-onlyIdempotent

Count how often each word appears in a block of text, sorted from most to least frequent. Returns the total word count, the number of unique words, and the top 20 words with their counts and percentages. Common stop words (the, and, of, ...) can optionally be ignored. Source: https://hopi.co.uk/word-frequency-counter/

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe text to analyse
ignoreStopwordsNoIgnore common words such as the, and, of, to (default false)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
topNo
totalNo
uniqueNo
summaryYes
source_urlYesThe tool's page on hopi.co.uk (cite or open to check the figure)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / required
      Added value: +[
      +  "source_url",
      +  "summary"
      +]
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations declare readOnlyHint and idempotentHint, and the description adds behavioral details: it returns total word count, unique words, top 20 with counts and percentages, and sorting order. This goes beyond the annotations and gives a clear picture of what the tool outputs.

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?

The description is three sentences, front-loads the purpose, and provides specific return details. It includes a source link which is not clutter. Every sentence contributes useful information without redundancy.

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?

For a simple read-only tool with a clear return contract and an output schema present, the description is complete. It covers what the tool does, what it returns, and the optional stop-word behavior. Nothing essential is missing for an agent to use it 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%, so both parameters are documented. The description's mention of stop words largely repeats the schema's description. It adds minimal extra meaning, so the baseline of 3 is appropriate.

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 clearly states the tool counts word frequency in a block of text, sorted by frequency, and returns specific metrics. It uses a specific verb 'Count' and resource 'word frequency', and distinguishes itself from sibling tools like hopi_word_counter by emphasizing the frequency distribution and top-20 output.

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 gives clear context: it's for analyzing word frequencies. It does not explicitly mention alternatives or when not to use it, but it provides enough context for an agent to understand its purpose. The optional stop-word filtering is mentioned, but no explicit routing to siblings is provided.

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