Skip to main content
Glama

IA-QA — 152 QA & Dev Tools for AI Agents

word_frequency

Read-onlyIdempotent

Analyze word frequency in text. Returns top N words with counts and percentages. Supports English stopword filtering. Useful for content analysis, keyword extraction, and LLM output analysis.

Input Schema

NameRequiredDescriptionDefault
inputYesText to analyze
top_nNoReturn top N words (default: 20, max: 200)
min_lengthNoMinimum word length to include (default: 3)
remove_stopwordsNoRemove common English stopwords (default: true)

Output Schema

NameRequiredDescriptionDefault
top_wordsNo
total_wordsNo
unique_wordsNo
stopwords_removedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "input": "the cat and the hat and the bat",
      +    "remove_stopwords": false,
      +    "top_n": 1
      +  }
      +]
  2. Changed1 schema field changed
    • addedOutput schema / properties
      Added value: +{
      +  "stopwords_removed": {},
      +  "top_words": {
      +    "type": "array"
      +  },
      +  "total_words": {},
      +  "unique_words": {
      +    "type": "number"
      +  }
      +}
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  4. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare this a safe, idempotent read, so the bar is lower. The description adds genuine behavioral context on top: the return payload ('counts and percentages') and the fact that stopword filtering is English-only and configurable.

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?

Three short sentences, front-loaded with what it does and what it returns. The final 'useful for' sentence is the weakest but still contributes selection context rather than padding.

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 four-parameter read-only analysis tool with an output schema and full annotation coverage, this is close to sufficient: purpose, return shape, and the stopword option are all covered. Only the min_length parameter goes unaddressed, and the schema handles it.

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 per-parameter descriptions and a worked example, so the schema carries the load. The description echoes 'top N' and 'stopword filtering' without adding syntax or defaults, and says nothing about min_length, so it earns the baseline rather than more.

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 ('Analyze word frequency in text') and adds the shape of the result ('top N words with counts and percentages'). It doesn't explicitly differentiate itself from the nearby text_stats or count_tokens siblings, so it falls short of a 5.

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?

The closing list ('content analysis, keyword extraction, and LLM output analysis') implies when to reach for it, which is real guidance. But there is no explicit when-not and no routing away from text_stats or count_tokens, which are the obvious alternatives in this sibling set.

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.