Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-type-token-ratio

Type Token Ratio: Type-token ratio: unique words / total words. Takes text (alias input). Returns the ratio 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>",
      "text": "<text>"
    },
    "name": "x402-type-token-ratio"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
inputYes

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose a meaningful behavioral trait — the free-trial quota and the need for a signed wallet, which implies payment/auth mechanics. It does not cover edge cases (empty text, single word, punctuation handling) or result precision, which matter for a computation tool.

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?

Tight, front-loaded: metric, formula, input, return, then the promo line. No wasted sentences, though the duplicated "Type Token Ratio: Type-token ratio" opening is a minor redundancy.

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?

For a simple two-parameter computation with no output schema, the description covers what goes in and what comes back ("the ratio as result"). It falls short on the ambiguous dual input parameter and on expected behavior for degenerate text inputs, which is the main thing an agent could get wrong.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and both 'text' and 'input' are marked required. The parenthetical "text (alias input)" hints they are the same value but never resolves whether an agent must send both or only one — a real risk of malformed calls. It adds a little meaning but leaves the key ambiguity standing.

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-less but precise operation: it names the metric and gives the exact formula "unique words / total words", which distinguishes it from the many other ratio siblings (aspect-ratio, pe-ratio, etc.). It is slightly redundant by restating the name twice, but the substance is unambiguous.

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?

No guidance on when to choose this tool over siblings like x402-content-word-ratio, and no context about prerequisites other than the payment note. An agent must infer usage entirely from the name and formula.

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.