Skip to main content
Glama

Keyword Clusters (Keyword Strategy)

keyword_clusters
Idempotent

Keyword strategy for a keyword list: groups 2 to 100 keywords into the pages to write and the topics (pillar pages) they belong to, by Google's own top 10 in one market, the same rule and figures as the workspace Keyword strategy page (/app/keyword-strategy). Two keywords go on one page when Google's top 10 for both shows at least 3 of the same pages; the biggest keyword not yet placed starts each page (searches a month, then fewer words, then shorter). Pages whose main keywords share a main word form a topic; its page with the most searches is the pillar page. The answer: answer (one plain sentence: how many pages, which first, which keywords share a page), topics (word, pillar, pages, search_volume), single_pages (pages of their own), each page with main_keyword, keywords (search_volume, keyword_difficulty, intent, shared_with_main: top-10 pages shared with the main keyword), search_volume (sum of the keywords with figures; null when none has one, never 0), keyword_difficulty (mean), ranking_now (the pages Google shows for the most of its keywords) and your_site (site's best place in their top 10, when site is given); not_grouped (keywords whose Google page could not be read, each with the reason and what to do); google_pages (each keyword's top 10 as read, with source saved, stored or live and collected_at); price, credits and receipt. Price, like the page: Google pages your account already read (a google_serp_scrape answer or an earlier keyword_clusters run in the last 30 days, while kept) are free; a new Google page costs 5 credits, 0 when any account read it in the last 24 hours; a keyword's figures (monthly searches, difficulty, intent) not stored cost 1 credit each (figures false uses the stored figures only, free). Failed pages are free. price.most is the most it can cost; max_credits refuses the call before anything is charged when price.most is higher (PRICE_ABOVE_LIMIT). Runs in the background: the answer comes back at once when the run finishes within about 25 seconds, otherwise accepted is true with run_id: poll scraper_run_get (view full or detail) until it is completed; its result is this answer. A list of 100 new Google pages takes about 5 to 10 minutes. For one keyword's figures use keyword_metrics; for one keyword's Google page google_serp_scrape.

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

Input Schema

NameRequiredDescriptionDefault
siteNoOptional: your own site (example.com). Each page then says where your site ranks in its keywords' top 10.
countryNoMarket country, a two-letter code such as US or GB.US
figuresNotrue (default) buys the keyword figures not stored yet, 1 credit each; false groups with the stored figures only (free), ordering keywords without figures by fewer words first.
keywordsYes2 to 100 keywords, such as ["crm software", "best crm for small business", "what is a crm"]. Case, spaces and repeats are ignored; a keyword longer than 80 characters or 10 words is left out (left_out).
languageNoMarket language, such as en.en
verbosityNoconcise: short summary of the answer; full: the whole answer. Only shapes the output. Send idempotency_key to read the other form later without a new charge.
max_creditsNoThe most this call may charge. When price.most (new Google pages x 5 + figures not stored) is higher, nothing is bought (PRICE_ABOVE_LIMIT). 0 runs only when the whole grouping is free (saved pages and stored figures, or figures false).
idempotency_keyNoOptional retry key: the same key returns the same run and never charges twice. Without one, every call starts a new run (Google pages it already read stay free).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations (readOnly=false, openWorld=true, idempotent=true) by disclosing the full credit model: free conditions for already-read Google pages and stored figures, 5 credits per new page, 1 credit per missing figure, failed pages free, and PRICE_ABOVE_LIMIT refusal via max_credits. It also discloses the async execution model, the ~25 second inline window, and that idempotency_key prevents double charging. Missing only what a failed or partially grouped run looks like beyond the not_grouped sketch.

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

Conciseness3/5

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

Purpose is front-loaded and almost every sentence carries information, but the pricing and output-shape material runs together into a dense block with long parentheticals, making it harder to scan than it needs to be. A short bulleted cost model would convey the same content more reliably.

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?

No output schema exists, yet the description enumerates the return structure (answer, topics, single_pages, per-page fields, not_grouped, google_pages, price/credits/receipt) and explains the async polling handoff. For an 8-parameter, open-world, credit-charging tool, nothing an agent needs to call it correctly is missing.

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%, so baseline is 3, but the description adds real meaning: figures=false groups on stored figures only and is free, max_credits is compared against price.most before anything is charged, and verbosity only reshapes output so the same idempotency_key can fetch the other form without a new charge. Site's effect on output (your_site) is also stated.

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?

States a specific verb and resource — groups 2 to 100 keywords into pages to write and pillar topics — using Google top-10 overlap in one market, and anchors it to a known surface (/app/keyword-strategy). The grouping rule (3 shared top-10 pages), the ordering rule (most searches, then fewer words, then shorter) and the topic/pillar rule are all spelled out, so an agent knows exactly what the tool produces.

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

Usage Guidelines5/5

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

Explicitly routes single-keyword needs elsewhere: 'For one keyword's figures use keyword_metrics; for one keyword's Google page google_serp_scrape.' It also tells the agent when the call returns synchronously versus when to poll scraper_run_get, and gives a rough cost in time for 100 new pages.

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