Skip to main content
Glama
Bukvarix MCP Server

Bukvarix MCP Server

by dcpraktik721

Compare Domains

bukvarix_compare_domains
Read-onlyIdempotent

Compare keywords across 2–10 domains to identify shared or unique search phrases, with optional region and result-count filters.

Instructions

Compare keywords between multiple domains.

This tool compares keywords across 2-10 domains (free API limit: 10 domains). For 2 domains, you can specify comparison type (common, unique to first, unique to second). For 3+ domains, always returns common keywords (intersection).

Args:

  • domains (string[], required): List of domains to compare. Minimum 2, maximum 10 for free API. Each domain must match format: /^[a-zA-Z0-9а-яёА-ЯЁ.-]+$/ (no protocol/path). Domains beyond limit are ignored.

  • comparison_type ('intersect' | 'domain1_uniq' | 'domain2_uniq', optional): Comparison type. Only works for exactly 2 domains. Default: 'intersect'.

    • 'intersect': Common keywords for all domains (default, always used for 3+ domains)

    • 'domain1_uniq': Keywords unique to first domain (only for 2 domains)

    • 'domain2_uniq': Keywords unique to second domain (only for 2 domains)

  • region (string, optional): Search engine region. Default: 'msk' (Moscow Yandex). Available regions: msk, gmsk, spb, rus, nsk, ekb, kzn, nnv, kry, che, sam, ufa, rnd, krr, oms, vrn, prm, vlg, sar, tmn, tom, gkiev, minsk, gminsk, nursul

  • num (number, optional): Number of results to return. Range: 1-1,000,000. Default: 250.

  • format ('txt' | 'json' | 'csv' | 'tsv', optional): Output format. Default: 'json'.

  • result_count (boolean, optional): If true, return only total count. Default: false.

Returns: Response format depends on 'format' and 'result_count' parameters.

If result_count=true:

  • Text: "Total keywords found: {count}"

  • Structured: { "total": number, "domains": string[], "comparison_type": string }

If result_count=false and format='json': { "data": [ [keyword, words_count, chars_count, search_results_count, broad_frequency, exact_frequency, position1, position2], ... ], "domains": ["domain1.com", "domain2.com"], "comparison_type": "intersect" } Where array indices:

  • [0]: keyword (string) - Keyword phrase

  • [1]: words_count (number) - Number of words in phrase

  • [2]: chars_count (number) - Number of characters

  • [3]: search_results_count (number) - Search results count in Yandex/Google

  • [4]: broad_frequency (number) - Broad frequency worldwide

  • [5]: exact_frequency (number) - Exact frequency worldwide

  • [6]: position1 (number) - Position for first domain (1-based)

  • [7]: position2 (number) - Position for second domain (1-based, only for 2 domains comparison)

Note: For 3+ domains comparison, only position1 is present (position for first domain).

Examples:

  • "Compare 2 domains (common)" -> { domains: ["wildberries.ru", "lamoda.ru"], comparison_type: "intersect" }

  • "Find unique to first" -> { domains: ["wildberries.ru", "lamoda.ru"], comparison_type: "domain1_uniq" }

  • "Compare 3+ domains" -> { domains: ["domain1.com", "domain2.com", "domain3.com"] }

  • "With region" -> { domains: ["d1.com", "d2.com"], region: "rus" }

  • "Count only" -> { domains: ["d1.com", "d2.com"], result_count: true }

Note: comparison_type is ignored when comparing 3+ domains (always uses intersection).

Error Handling:

  • 400: "Error: Invalid request" - Domain format incorrect or less than 2 domains

  • 402: "Error: Limit exceeded" - More than 10 domains or 'num' too large

  • 429: "Error: Rate limit exceeded" - Wait before retrying

  • Other errors: See bukvarix_search_keywords error handling

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": {
      "domains": "<domains>"
    },
    "name": "bukvarix_compare_domains"
  }
}

Input Schema

NameRequiredDescriptionDefault
numNoКоличество строк в отчете (по умолчанию 250, максимум 1000000)
formatNoФормат данных: 'txt' (список), 'json' (массив), 'csv' (точка с запятой), 'tsv' (табуляция)json
regionNoРегион поисковой машины (по умолчанию: msk - Москва Яндекс)
domainsYesСписок доменов для сравнения (от 2 до 10 для бесплатного API)
result_countNoЕсли true, вернуть только общее количество результатов без данных
comparison_typeNoТип сравнения: 'intersect' (общие), 'domain1_uniq' (уникальные для первого), 'domain2_uniq' (уникальные для второго)intersect

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds useful operational context: API domain limits, rate-limit and limit-exceeded error codes, and the exact shape of the returned rows. One internal inconsistency: 'Domains beyond limit are ignored' conflicts with the listed 402 error for more than 10 domains, which could mislead an agent about overflow behavior.

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?

Front-loaded with purpose and the key domain-count rule, then organized into Args/Returns/Examples/Errors. Long, but much of that length substitutes for the absent output schema; the Examples section largely restates the Args section and could be trimmed.

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?

Given six parameters and no output schema, the description documents argument semantics, result shapes per format, index-by-index field meanings, and error codes. Nothing an agent needs in order to call this correctly is missing, aside from sibling routing guidance.

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 the baseline is 3, but the description adds real meaning beyond the schema: the per-value semantics of comparison_type and its silent suppression for 3+ domains, and the positional meaning of position1/position2 in the result rows. It also clarifies the format/result_count interaction explicitly.

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 ('Compare keywords between multiple domains') plus a concrete scope (2-10 domains) that naturally separates it from the single-domain sibling tools. An agent can tell what this does without opening the schema.

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?

Gives explicit conditional guidance: comparison_type only applies to exactly 2 domains, and 3+ domains always returns the intersection. However, it never names an alternative tool (e.g. bukvarix_get_domain_keywords) or states when not to use this one, so routing between siblings is left implicit.

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