Skip to main content
Glama

keyword_density

Read-onlyIdempotent

Keyword density

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

Input Schema

NameRequiredDescriptionDefault
textYesThe text to process, plain UTF-8, for example: The quick brown fox.
keywordYesThe word or phrase to measure, for example coffee.
caseSensitiveNotrue to match upper and lower case as different; default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / caseSensitive / description
      Added value: +"true to match upper and lower case as different; default false."
    • addedInput schema / properties / keyword / description
      Added value: +"The word or phrase to measure, for example coffee."
    • addedInput schema / properties / text / description
      Added value: +"The text to process, plain UTF-8, for example: The quick brown fox."
  2. Changed1 schema field changed
    • addedInput schema / properties / keyword / maxLength
      Added value: +500
  3. Changed1 schema field changed
    • addedInput schema / properties / keyword / minLength
      Added value: +1
  4. First observed

TDQS

C2/5.0
Behavior2/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 fully covered without the description. The description adds nothing beyond that: no indication of output form (percentage vs count), how multi-word phrases or stop words are handled, or tokenization behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

At two words there is nothing to trim, but this is under-specification rather than conciseness. Nothing is front-loaded because nothing is stated.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The input schema is fully documented and the annotations are rich, but with no output schema the description should at minimum indicate what the density value looks like. For a three-parameter analysis tool, a bare label leaves the return semantics entirely unknown.

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 each of text, keyword and caseSensitive documented and exemplified, so the schema carries the parameter burden and the baseline of 3 applies. The description contributes no additional meaning about how keyword is matched or what caseSensitive changes in the result.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

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

The description is only "Keyword density", which restates the tool name and title without stating a verb or what is actually computed (a ratio, a count, a percentage). It gives no signal distinguishing it from the sibling analyze_readability, which also operates on text.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool, when not to, or how it relates to alternatives such as analyze_readability. An agent must infer the entire usage context from the two-word name 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