Skip to main content
Glama

Keyword extraction: pull the main keywords and key phrases out of a text

ai_keywords
Read-only

The most important keywords and key phrases of a text, most relevant first. Use for tagging, SEO, search indexing and topic detection. Price $0.01/call via x402 USDC or a card key (/credits); failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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

Input Schema

NameRequiredDescriptionDefault
textYesText, up to 12,000 characters
countNoHow many, 3-30 (default 10)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / count / maximum
      Previous value: -9007199254740991New value: +30
    • changedInput schema / properties / count / minimum
      Previous value: --9007199254740991New value: +3
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and idempotentHint=false, and the description's 'reads or computes only and changes nothing' largely restates that safety profile. The genuinely additive content is the pricing model ($0.01/call via x402 USDC or card key, failed calls free) and the warning that repeats are billed, which explains the non-idempotent hint in cost terms. It says nothing about return shape beyond ordering, latency, or error handling.

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 sentences that lead with the output and its ordering, then use cases, then cost and safety. The clause 'Reads or computes only and changes nothing' is mildly redundant against the annotations, but the rest 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 two-parameter extraction tool with no output schema, the description conveys the return shape (ranked keywords/phrases) and the unusual cost semantics an agent must know before retrying. Remaining gaps are minor: whether scores or weights accompany each keyword, and no stated error or empty-result behavior.

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 description coverage is 100%, so both 'text' (up to 12,000 characters) and 'count' (3-30, default 10) are already fully documented in the schema. The description adds no syntax, format, or constraint detail beyond that, so the baseline of 3 applies.

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 states a specific resource and scope: 'the most important keywords and key phrases of a text, most relevant first,' which tells an agent both what is produced and how it is ordered. It does not name a sibling such as text_keyword_density or keywords_ideas, so differentiation from the closest alternatives is left to the agent.

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 clear application context ('Use for tagging, SEO, search indexing and topic detection'), which is enough for an agent to recognize a fitting request. It stops short of explicit when-not-to-use conditions or a named alternative for overlapping tasks like density analysis or keyword ideation.

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