Skip to main content
Glama

ScorpTech x402 Tools

Keyword Extract

keyword_extract
Read-onlyIdempotent

Keyphrase extraction for tagging, SEO and RAG metadata: RAKE (rapid automatic keyword extraction: candidate phrases split at stopwords/punctuation, scored by word degree / frequency) or TextRank (co-occurrence graph + PageRank, adjacent top words merged into phrases). Returns ranked multi-word phrases with score, relative relevance, occurrence count and first offset. Offline, deterministic, English stopword list (add your own); 200 KB input. Returns JSON with: method, phrases, candidates, words. Price: $0.002 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/keyword-extract

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

Input Schema

NameRequiredDescriptionDefault
topNoNumber of phrases
textYesText to analyse
methodNorake (phrase-oriented) or textrank (graph-based)rake
maxWordsNoLongest phrase in words
minCountNoDrop phrases seen fewer times
stopwordsNoExtra stopwords (lowercase)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

The annotations already establish read-only, idempotent, non-destructive behavior, but the description adds important operational context: offline deterministic processing, English stopword defaults with customization, a 200 KB input cap, output fields, per-call pricing, payment chains, and an HTTPS endpoint. These details materially help an agent understand cost and execution behavior beyond the annotations.

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?

The description is dense but front-loaded, starting with purpose and methods before operational details. It repeats return information by listing ranked phrases and then separately listing JSON fields, but most sentences carry useful context for invocation and cost.

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

Completeness5/5

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

For a six-parameter paid extraction tool with no output schema, the description covers purpose, algorithm behavior, output contents, input limits, stopword customization, pricing, payment chains, and an alternate HTTPS endpoint. Error and rate-limit details are absent, but the definition is otherwise complete enough to select and invoke the tool correctly.

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

Parameters4/5

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

Schema description coverage is 100%, so the schema already documents all six parameters. The description adds useful semantics for the method parameter by explaining RAKE and TextRank, and it reinforces the stopword and input-size constraints, though it does not add detail for top, maxWords, or minCount beyond the schema.

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

Purpose5/5

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

The description states a specific verb and resource, 'Keyphrase extraction,' and names the two algorithms used. It clearly distinguishes this from sibling extraction tools such as contact_extract or entity_extract by focusing on ranked multi-word phrases for tagging, SEO, and RAG metadata.

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

Usage Guidelines4/5

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

It gives explicit use cases, tagging, SEO, and RAG metadata, plus guidance on choosing RAKE versus TextRank. It does not explicitly say when to choose this over sibling extractors or when not to use it, which keeps it below a 5.

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