Skip to main content
Glama
antohins

seo-tools-mcp

by antohins

XMLStock: serp

xmlstock_serp

Fetch Google/Yandex SERP via XMLStock API: positions, snippets, and SERP features (featured snippet, PAA, sitelinks). Supports region, device, and custom depth.

Instructions

Слепок выдачи Google/Yandex через XMLStock (ПЛАТНО за запрос). Возвращает { found, truncated (true = выдача кончилась раньше запрошенного depth), count, results: [{ position, url, title, snippet, text_bolds (подсветки hlword) }], serp_features: { featured_snippet, paa (только Google), related, sitelinks_top1, packs } }. Пустая выдача (код 15) ТАРИФИЦИРУЕТСЯ и помечается { results: [], empty: true, note }. depth>10 добирается пагинацией (каждая страница — отдельный платный запрос; у yandex_xml — до 100/страница). region: ОДИН регион (название или числовой id Яндекса) — работает для ВСЕХ движков. ОГРАНИЧЕНИЕ ИСТОЧНИКА: device=mobile отдаёт только позиции и сниппеты — без hlword/PAA/related; подсветки и SERP-фичи снимать с desktop. engine=yandex_xml — ОФИЦИАЛЬНЫЙ Яндекс XML (легальный API, тариф дороже: от 24 ₽/1000): groupby до 100 работает — до 100 результатов за ОДИН платный запрос (depth до 1000), hlword-подсветки на любых устройствах, статистика «найдено»: found (по запросу), found_docs (документов), found_human (строкой); в results доп. поля id/modtime/saved_copy_url/is_local. Отличие от yandex (live): SERP-фичей/packs нет — чистая органика; device/searchDomain/lang/l10n/period/exactQuery/includeAds/includeSimilar не применимы; safeSearch маппится в filter (strict/moderate/none).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
l10nNoYandex: язык уведомлений
langNoGoogle hl (язык интерфейса), Yandex lang
depthNoСколько органических позиций собрать: google/yandex — до 30 (10/страница), yandex_xml — до 1000 (100/страница)
queryYes
deviceNodesktop
engineNogoogle
periodNoGoogle tbs (qdr:m, qdr:y...) / Yandex within (77=сутки, 1=2 недели, 2=месяц)
regionNo«Москва»/«Россия»/213/225 — ОДИН регион (название или id Яндекса), XMLStock маппит и на GoogleМосква
sortbyNoYandex/yandex_xml: сортировка выдачи (rlv / tm — по дате)relevance
accountNoАккаунт-профиль (мультиаккаунт, см. *_auth_status); пусто = основной
exactQueryNoНе исправлять запрос (nfpr=1 / noreask=1)
includeAdsNoДобавить рекламные блоки (ads=1): реклама включается в ответ API и отражается строками в packs, отдельной секции нет
safeSearchNoБезопасный поиск: Google — moderate = дефолт Google (размытие, параметр в API НЕ шлётся), strict = фильтр (safe=on), off = выкл (safe=off); Yandex и yandex_xml — семейный фильтр filter (moderate/strict/none)moderate
maxpassagesNoYandex/yandex_xml: сколько пассажей-сниппетов на документ (1–5)
searchDomainNoДоменная зона: google — ru/com/de..., yandex — ru/by/kz/com.tr (по умолчанию ru)
includeSimilarNoGoogle: показать скрытые похожие результаты (filter=0)
excludeAggregatorsNoИсключить домены-агрегаторы из органики (список — XMLSTOCK_EXCLUDE_DOMAINS, дефолт: avito/cian/domclick/yandex/m2/youla)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.5.1
    • changedInput schema / properties / depth / description
      Previous value: -"Сколько органических позиций собрать"New value: +"Сколько органических позиций собрать: google/yandex — до 30 (10/страница), yandex_xml — до 1000 (100/страница)"
    • changedInput schema / properties / depth / maximum
      Previous value: -30New value: +1000
    • changedInput schema / properties / engine / enum
      Previous value: -[
      -  "google",
      -  "yandex"
      -]New value: +[
      +  "google",
      +  "yandex",
      +  "yandex_xml"
      +]
    • changedInput schema / properties / maxpassages / description
      Previous value: -"Yandex: сколько пассажей-сниппетов на документ (1–5)"New value: +"Yandex/yandex_xml: сколько пассажей-сниппетов на документ (1–5)"
    • changedInput schema / properties / safeSearch / description
      Previous value: -"Безопасный поиск: Google — moderate = дефолт Google (размытие, параметр в API НЕ шлётся), strict = фильтр (safe=on), off = выкл (safe=off); Yandex filter (moderate/strict/none)"New value: +"Безопасный поиск: Google — moderate = дефолт Google (размытие, параметр в API НЕ шлётся), strict = фильтр (safe=on), off = выкл (safe=off); Yandex и yandex_xml — семейный фильтр filter (moderate/strict/none)"
    • changedInput schema / properties / sortby / description
      Previous value: -"Yandex: сортировка выдачи (rlv / tm — по дате)"New value: +"Yandex/yandex_xml: сортировка выдачи (rlv / tm — по дате)"
  2. Changed8 schema fields changedv1.4.0
    • changedInput schema / properties / includeAds / description
      Previous value: -"Добавить рекламные блоки (ads=1)"New value: +"Добавить рекламные блоки (ads=1): реклама включается в ответ API и отражается строками в packs, отдельной секции нет"
    • changedInput schema / properties / includeSimilar / description
      Previous value: -"Google: показать скрытые похожие результаты (filter=1)"New value: +"Google: показать скрытые похожие результаты (filter=0)"
    • changedInput schema / properties / l10n / description
      Previous value: -"Yandex: язык уведомлений (ru/uk/be/kk/tr/en)"New value: +"Yandex: язык уведомлений"
    • addedInput schema / properties / l10n / enum
      Added value: +[
      +  "ru",
      +  "uk",
      +  "be",
      +  "kk",
      +  "tr",
      +  "en"
      +]
    • addedInput schema / properties / lang / pattern
      Added value: +"^[a-z]{2}(-[a-zA-Z]{2,4})?$"
    • changedInput schema / properties / region / description
      Previous value: -"«Москва»/«Россия»/213/225 — id Яндекса, XMLStock маппит и на Google"New value: +"«Москва»/«Россия»/213/225 — ОДИН регион (название или id Яндекса), XMLStock маппит и на Google"
    • changedInput schema / properties / safeSearch / description
      Previous value: -"Безопасный поиск: Google safe (moderate=размытие/strict=фильтр/off), Yandex filter (moderate/strict/none)"New value: +"Безопасный поиск: Google — moderate = дефолт Google (размытие, параметр в API НЕ шлётся), strict = фильтр (safe=on), off = выкл (safe=off); Yandex filter (moderate/strict/none)"
    • addedInput schema / properties / searchDomain / pattern
      Added value: +"^[a-z]{2,3}(\\.[a-z]{2,3})?$"
  3. First observedv1.2.0

TDQS

A4.7/5.0
Behavior5/5

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

The description discloses critical behaviors beyond annotations: every request is billed, pagination creates additional paid requests, empty results still cost money, mobile responses omit hlword/PAA/related, and yandex_xml returns different stats and fields. No statement contradicts the annotations; readOnlyHint=false is consistent with paid side effects.

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?

The description is dense but front-loaded with purpose, billing, and response shape. Some paid-request warnings are repeated, and the single-block format could benefit from headings or bullet separation, but every section serves a functional purpose and no filler is present.

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?

With no output schema and 17 parameters, the description carries the full burden of explaining return values and constraints. It covers found/truncated/count/results/serp_features, empty-result behavior, engine-specific output fields, pagination, and source limitations. This is complete enough for reliable invocation and interpretation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Even though schema coverage is high at 82%, the description adds substantial parameter-level meaning: depth pagination behavior, region working across all engines, mobile-specific restrictions, non-applicable parameters for yandex_xml, and safeSearch-to-filter mapping. This goes well beyond what the JSON schema alone provides.

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 clearly identifies the tool as a snapshot of Google/Yandex SERP via XMLStock and immediately distinguishes it from image/news/video siblings by describing organic results and serp_features. It also explicitly names engine variants and their semantic differences. This is a specific verb-resource pairing that an agent can act on without ambiguity.

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?

The description gives strong selection guidance between engine values, especially yandex_xml versus yandex (live), listing non-applicable parameters and safeSearch mapping. It does not explicitly tell the agent when to choose this tool over sibling tools like xmlstock_images or xmlstock_news, so it falls just short of a 5.

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