Skip to main content
Glama
mcp-serp-clustering

mcp-serp-clustering

by dredozubov

cluster_keywords

Groups keywords by shared top-10 SERP URLs to identify terms that should target the same page; reads a CSV and writes cluster and overlap outputs.

Instructions

Cluster keywords by SERP overlap. Groups keywords that share 3+ URLs in top 10 results, indicating they should target the same page. Input must be a CSV file with columns: keyword, position, url

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": {
      "input_file": "<input_file>",
      "output_clusters": "<output_clusters>",
      "output_overlap": "<output_overlap>"
    },
    "name": "cluster_keywords"
  }
}

Input Schema

NameRequiredDescriptionDefault
input_fileYesPath to input CSV file with SERP data (keyword, position, url columns)
output_overlapYesPath where URL overlap matrix will be saved
output_clustersYesPath where cluster results will be saved

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the similarity threshold and the input format, but never states that the tool writes two files to disk (a mutation side effect), nor how transitive overlaps are handled (whether A–B and B–C chain into one cluster), nor what happens with malformed or missing CSV columns.

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 short sentences with the effect front-loaded and the input constraint last; no filler. The final clause partly restates the input_file schema description, a small redundancy that keeps it below 5.

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

Completeness3/5

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

With no output schema and no annotations, the description should carry more: it never describes what a cluster record or the overlap matrix looks like. It is adequate for invoking the tool correctly but leaves the agent guessing about results and side effects.

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 all three paths are already documented in the schema. The description adds the column layout for input_file, which duplicates the schema, and says nothing about the two output paths or their formats; baseline 3 applies.

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 names a specific verb and resource ('Cluster keywords by SERP overlap') and pins down the grouping rule: keywords sharing 3+ URLs in the top 10 belong together. An agent can predict the output concept (grouped keywords for a single target page) without opening anything else.

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?

There is no explicit when-to-use guidance or exclusion, though no sibling tools exist to route against. The description does supply one hard precondition ('Input must be a CSV file with columns: keyword, position, url'), which is practical usage context but not a when-to-use rule.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools