Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-word-density

Word Density: Density of one word in a text. Takes text (alias input) and word (alias term). Returns occurrences divided by total words as result. 🆓 5 free trial calls per signed wallet

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": {
      "input": "<input>",
      "word": "<word>"
    },
    "name": "x402-word-density"
  }
}

Input Schema

NameRequiredDescriptionDefault
termNo
textNo
wordYes
inputYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "input",
      +  "word"
      +]
  2. Changed4 schema fields changed
    • removedInput schema / properties / input / description
      Removed value: -"Input to process"
    • removedInput schema / properties / term / description
      Removed value: -"Term to process"
    • removedInput schema / properties / text / description
      Removed value: -"Text to process"
    • removedInput schema / properties / word / description
      Removed value: -"Word to process"
  3. First observed

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose two genuinely useful behavioral traits: the exact computation (occurrences divided by total words) and a payment gate (5 free trial calls per signed wallet, which implies a signed-wallet requirement). It does not cover edge cases such as empty text or zero total words, nor whether the result is a fraction or a percentage.

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?

Four short sentences, front-loaded with the purpose before aliasing and pricing details. Every sentence carries information, though the emoji and free-trial line sit awkwardly inside a semantic description.

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

Completeness3/5

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

With no output schema, the description should explain the return value and boundary behavior; it states the computation but not the result type or handling of degenerate cases, which is a real gap for a ratio-producing tool. It is still sufficient for a simple single-purpose metric tool.

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 0% and there are 4 parameters, so the description must compensate; it does resolve the alias pairs by mapping text to input and word to term. However, it never says which of an alias pair wins if both are supplied, nor does it constrain the params further (single word only, case sensitivity).

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: it computes the density of one word in a text, and spells out the formula (occurrences divided by total words). That formula implicitly separates it from counting siblings like x402-word-frequency or x402-word-count (ratios versus raw counts), but no sibling is named outright.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to choose this tool instead of x402-density, x402-word-frequency, or x402-content-word-ratio; the only usage-adjacent statement is the free-trial call limit. An agent has to infer applicability from the formula 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.