Skip to main content
Glama

keywords-tfidf

Extract keywords locally (TF-IDF + English/Spanish stopwords, no LLM). input={text, max?}. [x402: 0.02 USDC on Base, pay-per-use]

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>"
    },
    "name": "keywords-tfidf"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesText to extract keywords from

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does disclose real behavioral facts: execution is local, no LLM is involved, stopword handling covers English and Spanish, and there is a 0.02 USDC per-use x402 charge on Base. What it omits is the result shape (ranked list? scores?) and any limits on input size, so it is informative but not complete.

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 compact fragments, front-loaded with the action and method, then the call shape, then cost. The pricing bracket is genuinely useful information rather than filler, though the 'input={...}' fragment is wasted space given the schema.

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 one-parameter tool without an output schema, the description should at minimum convey what comes back, and it does not say whether the result is a keyword list, weighted scores, or a count. The invented 'max' parameter further reduces confidence in how to invoke it correctly.

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 coverage is 100% and the single parameter is already documented, so the baseline would be 3. However, the description claims 'input={text, max?}' while the schema defines 'input' as a plain string with no 'max' field anywhere, which actively misleads an agent about the call signature.

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 ('Extract keywords') and adds the method ('TF-IDF + English/Spanish stopwords, no LLM'), which meaningfully separates it from LLM-based siblings like extract-entities or extract-fields. It stops short of explicitly contrasting with those siblings, so it lands at 4 rather than 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?

Usage context is only implied: local processing and no LLM suggest it is the cheap/deterministic choice for keyword extraction, and the per-call price hints it is meant for occasional use. There is no explicit when-to-use statement and no named alternative or exclusion condition.

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.