Skip to main content
Glama

text_keyphrases

Read-only

Keyphrase extraction (RAKE, offline) — Extract the key phrases and top words from any text with RAKE (word degree/frequency scoring) plus stemming and a frequency boost - offline, deterministic, no AI. Returns ranked multi-word keyphrases with scores and counts, top content words, and text stats (words, unique words, lexical diversity). Optional: top (1-50, default 15), min_count. Up to 200,000 chars. Price: $0.001 USDC (Base, via x402).

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

Input Schema

NameRequiredDescriptionDefault
textYese.g. Machine learning models need clean training data. Data quality problems such as missing values and label noise reduce model accuracy. Teams invest in data validation pipelines and feature stores to keep training data consistent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Adds substantial behavioral detail beyond annotations: RAKE scoring, stemming, frequency boost, deterministic offline processing, return contents, size limit, and payment via x402. It does not cover error behavior or authorization mechanics beyond the price note, so it stops short of exhaustive transparency.

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?

Front-loads the core extraction purpose and packs constraints, return values, and pricing efficiently. The prose is dense and somewhat run-on, with minor repetition around RAKE and offline operation, but generally earns its space.

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 one-parameter extraction tool with no output schema, it explains outputs, scoring, limits, and constraints well. Completeness is slightly undercut by optional parameters described but absent from the input schema.

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?

The schema already fully documents the single required text parameter, so baseline is 3. The description usefully adds a 200,000-character limit, but it also mentions optional top and min_count parameters that do not appear in the supplied schema, weakening parameter reliability.

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: keyphrase extraction with RAKE, including top words and text stats. The purpose is clear, though it does not explicitly distinguish itself from sibling text-analysis tools such as extractive summarizers.

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?

Implied usage is clear: extract keyphrases from text. The description adds useful selection context by noting it is offline, deterministic, and not AI-based, but it gives no explicit when-not-to-use guidance or named alternatives.

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