Skip to main content
Glama

срезAI — MCP-сервер и поисковый API для ИИ-агентов

Answer Search - RAG с семантическим ранжированием

answer_search
Read-only

Полный RAG-цикл: поиск источников, семантическое ранжирование через BGE-reranker-v2-m3, чтение релевантных страниц и синтез финального ответа. Возвращает готовый ответ с указанием релевантности каждого источника (0-1).

Когда: нужен итоговый ответ на вопрос, а не список ссылок. Лучше web_search + read_url, когда требуется интерпретация и синтез по нескольким источникам. Конвейер: переформулировка запроса → параллельный поиск → BGE-reranker отбирает топ → чтение страниц → синтез ответа. Возвращает: текст ответа + sources (каждый с relevance, chars_read, read_success). Источники всегда отсортированы по убыванию relevance. Цена зависит от depth: fast - 3 кредита, balanced - 5 кредитов, deep - 10 кредитов.

Full RAG cycle: search, semantic reranking via BGE-reranker-v2-m3, page reading, answer synthesis. Returns a ready answer with relevance scores (0-1) for each source.

Use when: you need a final answer, not a list of links. Better than web_search + read_url when interpretation and synthesis across sources is required. Pipeline: query rewriting → parallel search → BGE-reranker picks top results → page reading → answer synthesis. Returns: answer text + sources (each with relevance, chars_read, read_success). Sources are always sorted by descending relevance. Cost depends on depth: fast - 3 credits, balanced - 5 credits, deep - 10 credits.

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": "answer_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNoГлубина: fast (2 страницы), balanced (5 страниц, по умолчанию), deep (10 страниц). Больше страниц - выше качество, дольше время. / Depth: fast (2 pages), balanced (5 pages, default), deep (10 pages). More pages = higher quality, longer time.balanced
queryYesВопрос или поисковый запрос / Question or search query
languageNoЯзык поиска и ответа / Search and answer language: auto, ru, enauto

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  3. Changed3 schema fields changed
    • changedInput schema / properties / depth / description
      Previous value: -"Глубина: fast (2 страницы), balanced (5 страниц, по умолчанию), deep (10 страниц). Больше страниц - выше качество, дольше время."New value: +"Глубина: fast (2 страницы), balanced (5 страниц, по умолчанию), deep (10 страниц). Больше страниц - выше качество, дольше время. / Depth: fast (2 pages), balanced (5 pages, default), deep (10 pages). More pages = higher quality, longer time."
    • changedInput schema / properties / language / description
      Previous value: -"Язык поиска и ответа: auto, ru, en"New value: +"Язык поиска и ответа / Search and answer language: auto, ru, en"
    • changedInput schema / properties / query / description
      Previous value: -"Вопрос или поисковый запрос"New value: +"Вопрос или поисковый запрос / Question or search query"
  4. Changed3 schema fields changed
    • changedInput schema / properties / depth / description
      Previous value: -"Глубина: fast (2 страницы), balanced (5 страниц, по умолчанию), deep (10 страниц). Больше страниц - выше качество, дольше время. / Depth: fast (2 pages), balanced (5 pages, default), deep (10 pages). More pages = higher quality, longer time."New value: +"Глубина: fast (2 страницы), balanced (5 страниц, по умолчанию), deep (10 страниц). Больше страниц - выше качество, дольше время."
    • changedInput schema / properties / language / description
      Previous value: -"Язык поиска и ответа / Search and answer language: auto, ru, en"New value: +"Язык поиска и ответа: auto, ru, en"
    • changedInput schema / properties / query / description
      Previous value: -"Вопрос или поисковый запрос / Question or search query"New value: +"Вопрос или поисковый запрос"
  5. Changed1 schema field changed
    • changedInput schema / properties / depth / description
      Previous value: -"Глубина: fast (2 страницы), balanced (5 страниц, по умолчанию), deep (10 страниц). Больше страниц — выше качество, дольше время. / Depth: fast (2 pages), balanced (5 pages, default), deep (10 pages). More pages = higher quality, longer time."New value: +"Глубина: fast (2 страницы), balanced (5 страниц, по умолчанию), deep (10 страниц). Больше страниц - выше качество, дольше время. / Depth: fast (2 pages), balanced (5 pages, default), deep (10 pages). More pages = higher quality, longer time."
  6. Changed6 schema fields changed
    • addedInput schema / properties / depth / default
      Added value: +"balanced"
    • changedInput schema / properties / depth / description
      Previous value: -"Глубина поиска / Search depth: fast=2 pages, balanced=5, deep=10"New value: +"Глубина: fast (2 страницы), balanced (5 страниц, по умолчанию), deep (10 страниц). Больше страниц — выше качество, дольше время. / Depth: fast (2 pages), balanced (5 pages, default), deep (10 pages). More pages = higher quality, longer time."
    • addedInput schema / properties / language / default
      Added value: +"auto"
    • changedInput schema / properties / language / description
      Previous value: -"Язык поиска / Search language (default: auto)"New value: +"Язык поиска и ответа / Search and answer language: auto, ru, en"
    • changedInput schema / properties / query / description
      Previous value: -"Вопрос или задача / Question or search task"New value: +"Вопрос или поисковый запрос / Question or search query"
    • changedInput schema / properties / query / maxLength
      Previous value: -500New value: +2000
  7. Added
  8. Removed
  9. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld/idempotent=false/destructive=false; the description adds the internal pipeline (query rewriting → parallel search → reranker → page reading → synthesis), a per-call credit price table tied to depth, and a return guarantee that sources are always sorted by descending relevance with relevance/chars_read/read_success fields. Cost and ranking guarantees are exactly the kind of behavior structured fields do not carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Content is front-loaded and well-ordered (purpose → when → pipeline → returns → cost), but every line is duplicated verbatim in Russian and English, roughly doubling length with no new information for a given reader. The bilingual duplication is defensible for a Russian-facing tool, yet it costs efficiency.

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?

No output schema exists, and the description fully compensates by describing the return payload (answer text plus per-source relevance, chars_read, read_success) and its ordering. Combined with the when/cost/pipeline coverage, an agent has everything needed to call it correctly and anticipate the result shape.

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 meaning the schema lacks: it ties depth values to credit cost (fast 3, balanced 5, deep 10 credits), which is a decision-relevant fact absent from the enum. Page counts per depth are already in the schema, so the gain is partial rather than complete.

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 opening sentence names a specific verb chain on a specific resource: 'Полный RAG-цикл: поиск источников, семантическое ранжирование..., чтение релевантных страниц и синтез финального ответа.' It explicitly contrasts the output with sibling behavior ('нужен итоговый ответ на вопрос, а не список ссылок'), so an agent can separate it from web_search/read_url without opening any 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?

Provides an explicit 'Когда:' block plus a named alternative and the condition that selects it: 'Лучше web_search + read_url, когда требуется интерпретация и синтез по нескольким источникам.' The when-to-use and the when-to-use-something-else are both stated, not inferred.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.