Skip to main content
Glama
Bukvarix MCP Server

Bukvarix MCP Server

by dcpraktik721

Search Keywords

bukvarix_search_keywords
Read-onlyIdempotent

Search Bukvarix for keywords matching a single query phrase, including wildcard and exclusion syntax, to retrieve keyword lists, frequencies, or result counts.

Instructions

Search for keywords using a single query phrase.

This tool searches Bukvarix database for keywords matching the query. Supports special syntax:

  • Wildcard: "строител* товары" (matches: строительные товары, товары для строительства)

  • Exclusions: "!строительные !товары" (excludes phrases containing these words)

  • Special characters (*, !, ~) are automatically percent-encoded

Args:

  • query (string, required): Keyword or phrase to search. Supports special characters: * (wildcard), ! (exclusion), ~ (synonyms). Must not be empty.

  • 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'.

    • 'json': Structured data as object with 'data' array

    • 'txt': Simple list of keywords, one per line

    • 'csv': Table with semicolon delimiter, quoted text values

    • 'tsv': Table with tab delimiter, unquoted text values

  • report_type ('report' | 'word_analysis', optional): Report type. Default: 'report'.

    • 'report': Standard keyword report

    • 'word_analysis': Word analysis report

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

Returns: Response format depends on 'format' parameter and 'result_count' flag:

If result_count=true:

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

  • Structured: { "total": number }

If result_count=false and format='json': { "data": [ [keyword, words_count, chars_count, broad_frequency, exact_frequency], ... ] } Where array indices:

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

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

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

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

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

For other formats (txt/csv/tsv), returns formatted text representation.

Large responses (>25,000 chars) are truncated with a message.

Examples:

  • "Find keywords for 'пластиковые окна'" -> { query: "пластиковые окна", num: 10 }

  • "Search keywords starting with 'строитель'" -> { query: "строитель*", num: 50 }

  • "Get count only" -> { query: "окна", result_count: true }

  • "Export to CSV" -> { query: "окна", format: "csv", num: 100 }

Don't use when: You need to search multiple queries (use bukvarix_search_keywords_batch instead)

Error Handling:

  • 400: "Error: Invalid request" - Check query format and parameters

  • 401: "Error: Authentication failed" - Check BUKVARIX_API_KEY environment variable

  • 402: "Error: Limit exceeded" - Free API limits exceeded, reduce 'num' parameter

  • 429: "Error: Rate limit exceeded" - Wait before making more requests

  • 500: "Error: Internal server error" - Contact Bukvarix support

  • 503: "Error: Server maintenance" - Try again later

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": {
      "query": "<query>"
    },
    "name": "bukvarix_search_keywords"
  }
}

Input Schema

NameRequiredDescriptionDefault
numNoКоличество строк в отчете (по умолчанию 250, максимум 1000000)
queryYesКлючевое слово или фраза для поиска (поддерживает спецсимволы: *, !, ~)
formatNoФормат данных: 'txt' (список), 'json' (массив), 'csv' (точка с запятой), 'tsv' (табуляция)json
report_typeNoТип отчета: 'report' (отчет) или 'word_analysis' (анализ)report
result_countNoЕсли true, вернуть только общее количество результатов без данных

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, yet the description adds substantive operational facts: API-key authentication via BUKVARIX_API_KEY (401), free-tier limit exhaustion tied to 'num' (402), rate limiting (429), and the 25,000-character truncation threshold. It also discloses a hidden mode switch (result_count returns a scalar instead of a row array), which is not inferable from the annotations.

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 special-syntax rules that cause most invocation mistakes, then Args, Returns, Examples, errors in a predictable order. It is long and the Args section duplicates the schema's defaults and ranges, plus the 5-line row-index table is verbose, but since no output schema exists the Returns block earns its space.

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?

For a 5-parameter read tool with no output schema, the description supplies everything an agent needs: return payload structure with field-by-field row indices, alternate output formats, truncation behavior, and a full error-code table. Nothing material about calling it correctly is left undocumented.

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% (in Russian), so baseline is 3; the description adds real semantics the schema lacks: wildcard '*' matching behavior with a concrete expansion example, '!' exclusion semantics, '~' synonyms, delimiter/quoting differences between csv and tsv, and what result_count changes about the response shape. Some of the Args block merely restates schema defaults and the 1-1,000,000 range, which keeps it from a full 5.

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 ('Search for keywords') plus the data source (Bukvarix database) and the scoping unit (a single query phrase). The closing 'Don't use when' line names the batch sibling and the condition that selects it, so an agent can disambiguate without opening either schema.

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?

Explicit exclusion is given ('You need to search multiple queries -> use bukvarix_search_keywords_batch instead'), and the four worked examples map natural-language intents to concrete argument sets (count-only, prefix wildcard, CSV export). When-not guidance plus alternatives is present, not merely implied.

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