Skip to main content
Glama

WordMeasure

Find the most used words and phrases

keyword_density
Read-onlyIdempotent

Lists the most used words, two word phrases or three word phrases in a piece of text, with how often each appears and its share of the text. Common words such as "the" and "and" are left out unless asked for.

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

Input Schema

NameRequiredDescriptionDefault
textYesThe text to check.
limitNoHow many to list. Default 10.
phrase_lengthNoWords per phrase: 1, 2 or 3. Default 1.
include_common_wordsNoCount words such as "the" and "and" too. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds two things those annotations cannot: a stopword-filtering default and the shape of each result (count plus share of the text), which lets an agent predict output without a 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 sentences, no filler. The core scope (words and 1-3 word phrases, with counts and shares) is front-loaded, and the default-exclusion caveat follows immediately where it is needed.

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 simple read-only text tool with no output schema, the description is nearly sufficient: it explains both what is counted and what comes back. The one small gap is that result ordering (presumably descending by frequency) is only implied by 'most used' rather than stated.

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 all four parameters are already documented, including the 1-3 range for phrase_length and the 50-item cap on limit. The description only echoes the include_common_words default and adds no syntax, ordering, or edge-case detail 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.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb-and-resource pair: it lists the most used words or 2/3-word phrases in a text, and states what accompanies each result (frequency and share of the text). That is far more specific than a name restatement, though it never positions itself against siblings like count_text or change_case.

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. The sentence about common words being left out 'unless asked for' tells an agent indirectly when to flip include_common_words, but there is no explicit when-to-use, when-not-to-use, or named alternative such as count_text for simple counting.

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