Skip to main content
Glama

ai_keywords_batch

Read-only

AI keyword extraction (batch) — Extract keywords and key phrases from up to 10 texts in one call via Workers AI: keywords per text, keywords shared across texts (with how many texts use each), and each text's unique keywords - for tagging, clustering and SEO briefs. texts = separated by || or a JSON array of strings. Price: $0.02 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": {
      "texts": "<texts>"
    },
    "name": "ai_keywords_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
textsYese.g. Stablecoin payments let AI agents pay per API call.||Machine learning models need clean training data.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnly/openWorld/non-destructive annotations, it discloses cost ($0.02 USDC on Base via x402), the hard cap of 10 texts, and the exact shape of the result (keywords per text, shared keywords with occurrence counts, unique keywords per text). That is substantial operational context an agent could not infer from the structured fields alone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One front-loaded core sentence covers purpose, scope, outputs and use cases, followed by a short input-format note and price. Every clause carries information; nothing is redundant.

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?

With no output schema, the description carries the return-value burden and does so well by enumerating the three result groupings, plus cost and input encoding. It stops short of covering failure modes (e.g. fewer than 10 texts, malformed input, payment failure), which are minor gaps for a read-only extraction tool.

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 coverage is 100% and the sole parameter is documented, so the baseline is 3. The description still adds real value by stating that `texts` accepts either a `||`-separated string or a JSON array of strings, while the schema's example only illustrates the `||` form.

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 verb and resource ('Extract keywords and key phrases from up to 10 texts in one call') and distinguishes the batch variant by stating the 10-text ceiling. It does not explicitly name the singular `ai_keywords` sibling as the single-text alternative, so differentiation is implied rather than stated.

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?

It supplies intended use cases ('for tagging, clustering and SEO briefs') and an implicit batch threshold, but never says when to prefer the non-batch sibling or when not to use this tool. Usage is strongly implied rather than prescribed.

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