Search Keywords
bukvarix_search_keywordsFind keywords in the Bukvarix database by searching a single phrase, including wildcard and exclusion syntax, to retrieve related terms and frequency data.
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
| Name | Required | Description | Default |
|---|---|---|---|
| num | No | Количество строк в отчете (по умолчанию 250, максимум 1000000) | |
| query | Yes | Ключевое слово или фраза для поиска (поддерживает спецсимволы: *, !, ~) | |
| format | No | Формат данных: 'txt' (список), 'json' (массив), 'csv' (точка с запятой), 'tsv' (табуляция) | json |
| report_type | No | Тип отчета: 'report' (отчет) или 'word_analysis' (анализ) | report |
| result_count | No | Если true, вернуть только общее количество результатов без данных |