Skip to main content
Glama

Ответы на опрос

get_quiz_answers
Read-onlyIdempotent

Возвращает список ответов респондентов (submissions) по опросу. Каждый ответ содержит answer_id для toggle_answer_visibility и tag_answer и ab_variant — какой вариант A/B-теста видел респондент ({"<id виджета>": "<id варианта>"}, null — без A/B-теста). answer_total_count считает ответы по тем же фильтрам.

Input Schema

NameRequiredDescriptionDefault
dateNoФильтр по дате (формат Y-m-d).
sortNoПоле сортировки: date_end — время завершения, date_start — время начала, score — сумма баллов, duration — время прохождения, q:<uuid вопроса> — значение ответа на вопрос с числом (rating, scale, nps, smile-rating, slider, number; uuid — rowId вопроса в ответе). Пустые значения — в конце.
limitNoКоличество ответов (по умолчанию 20, макс. 100).
orderNoНаправление сортировки: asc или desc, по умолчанию desc.
offsetNoСмещение (по умолчанию 0).
quiz_idYesID опроса.
is_deletedNoСкрытые ответы: true — показать те, что исключены из отчётов. По умолчанию их в выдаче нет.
is_completeNoФильтр по завершённости (true — только завершённые, false — незавершённые). Не передан — завершённые и незавершённые вместе. Незавершённые требуют опции тарифа «незавершённые ответы»: без неё false даёт ошибку tariff_incomplete, а без is_complete приходят только завершённые и флаг incomplete_excluded_by_tariff: true.
is_screenoutNoОтсеянные ответы: true — показать тех, кого отсеяла логика опроса. По умолчанию их в выдаче нет.
unique_link_idsNoID ссылок этого набора: только их ответы. Без unique_link_group_id не учитывается.
unique_link_group_idNoID набора уникальных ссылок из manage_quiz_unique_links: только ответы этого набора. Работает на любом тарифе. У каждого ответа в выдаче есть поле unique_link — ссылка и набор или null.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / is_complete / description
      Previous value: -"Фильтр по завершённости (true — только завершённые, false — незавершённые)."New value: +"Фильтр по завершённости (true — только завершённые, false — незавершённые). Не передан — завершённые и незавершённые вместе. Незавершённые требуют опции тарифа «незавершённые ответы»: без неё false даёт ошибку tariff_incomplete, а без is_complete приходят только завершённые и флаг incomplete_excluded_by_tariff: true."
    • changedInput schema / properties / order / description
      Previous value: -"Направление сортировки: asc или desc."New value: +"Направление сортировки: asc или desc, по умолчанию desc."
    • changedInput schema / properties / sort / description
      Previous value: -"Поле сортировки: date_end или date_start."New value: +"Поле сортировки: date_end — время завершения, date_start — время начала, score — сумма баллов, duration — время прохождения, q:<uuid вопроса> — значение ответа на вопрос с числом (rating, scale, nps, smile-rating, slider, number; uuid — rowId вопроса в ответе). Пустые значения — в конце."
    • removedInput schema / properties / sort / enum
      Removed value: -[
      -  "date_end",
      -  "date_start"
      -]
    • addedInput schema / properties / sort / pattern
      Added value: +"^(date_end|date_start|score|duration|q:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's added value is in disclosure of result semantics: ab_variant maps widget id to variant id with null meaning no A/B test, and answer_total_count respects the same filters. It does not explain pagination interaction (limit/offset vs total) or the tariff gating on incomplete answers, which the schema carries instead.

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?

Three sentences, front-loaded with what is returned, then the fields, then the count semantics. The inline JSON illustration for ab_variant costs some space but disambiguates the value shape; nothing is redundant filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 11 parameters and no output schema, the description usefully compensates by naming the returned fields (answer_id, tag, ab_variant, answer_total_count) and their meaning. What remains under-explained is pagination strategy and the tariff behavior for incomplete answers, but those are documented in the schema.

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

Parameters3/5

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

Schema description coverage is 100% and each of the 11 parameters is documented in the schema, including the is_complete tariff caveat and the sort pattern, so the baseline is 3. The description adds no parameter-level detail beyond what is already in the schema, devoting its text to output fields instead.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Возвращает список ответов респондентов по опросу') and immediately enumerates what each answer carries (answer_id, tag, ab_variant), so an agent knows the payload shape. It does not explicitly contrast itself with close siblings like count_quiz_answers or export_answers_csv, so the differentiation is only implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is implied rather than stated: the mention that answer_id feeds toggle_answer_visibility and tag_answer hints at a read-then-mutate workflow, and answer_total_count hints at pagination. But there is no explicit 'use this instead of X' guidance against count_quiz_answers or the export_answers_* family.

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.

Resources