Skip to main content
Glama

Журнал посещений

get_quiz_visits
Read-onlyIdempotent

Список посещений опроса, сначала новые: когда, устройство, браузер, страна, параметры ссылки и что стало с посещением — статус no_answer, unfinished, screenout или completed (по лучшему ответу посещения) и answer_id, чтобы открыть ответ. total — сколько посещений подходит под все фильтры, counts — по статусам под теми же фильтрами без учёта status. Фильтры: status (started — все посещения с ответом), значение параметра ссылки (param_key + param_value; пустое значение допустимо) или его отсутствие (param_key + param_missing = true), устройство, браузер или страна (segment_by + segment_value, либо segment_unknown = true — значение неизвестно), период и устройство. На тарифе без незавершённых ответов answer_id у unfinished и screenout — null: такие ответы там не открываются. У посещения также city (город по IP на языке аккаунта), ip (null у посещений панели респондентов), referrer (только домен сайта, с которого пришли) и is_bot (поисковый робот, превью ссылки в мессенджере или соцсети, безголовый браузер или http-клиент — по User-Agent); bots — сколько роботов под теми же фильтрами без учёта hide_bots. hide_bots = true убирает роботов из items, total и counts. В опросе с анонимными ответами устройство, браузер, страна, город, ip и referrer — null.

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": {
      "quiz_id": "<quiz_id>"
    },
    "name": "get_quiz_visits"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoСколько посещений на странице, от 1 до 100. По умолчанию 30.
deviceNoТолько посещения с этого устройства: desktop, mobile, tablet.
offsetNoСколько посещений пропустить, от 0 до 1000000. По умолчанию 0.
statusNoall (по умолчанию), no_answer, started, completed, unfinished, screenout.
date_toNoПоследний день периода, YYYY-MM-DD, включительно.
quiz_idYesID опроса.
date_fromNoПервый день периода, YYYY-MM-DD, включительно. Период — по дню посещения в часовом поясе владельца опроса.
hide_botsNotrue — без роботов: их нет в items, total и counts.
param_keyNoИмя параметра ссылки, например utm_source. Нужен param_value или param_missing.
segment_byNodevice, browser или country. Нужен segment_value или segment_unknown.
param_valueNoТолько посещения с этим значением параметра. Пустая строка — параметр был, но пустой.
param_missingNotrue — только посещения, пришедшие без param_key.
segment_valueNoТолько посещения с этим устройством, браузером или страной — как их отдаёт get_quiz_visit_segments.
segment_unknownNotrue — только посещения, у которых segment_by неизвестен.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / hide_bots
      Added value: +{
      +  "description": "true — без роботов: их нет в items, total и counts.",
      +  "type": "boolean"
      +}
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already mark it read-only, idempotent, non-destructive, and closed-world, but the description adds substantial behavior beyond them: newest-first ordering, status definitions, total/counts scoping, bot detection and hide_bots effects, null answer_id on plans without unfinished answers, and null demographic/IP/referrer fields for anonymous responses. These are exactly the edge cases an agent needs to interpret results correctly.

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?

It is front-loaded and information-dense, with little pure filler for a 14-parameter tool that has no output schema. However, it is one long paragraph with some repeated filter wording, so structure could be cleaner.

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 14 parameters, no output schema, and complex status/bot/anonymity rules, the description supplies return fields, filter interactions, edge cases, and null semantics. It is complete enough for an agent to call the tool and interpret its results correctly.

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 description coverage is 100%, so the baseline is 3. The description still adds useful meaning, especially that status=started means all visits with an answer and that status is based on the visit's best answer; it also clarifies empty link-parameter values and missing-parameter filtering. It does not explain limit/offset pagination, so it is not a 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?

The description opens with a specific verb and resource: 'Список посещений опроса', and immediately states the ordering ('сначала новые'). It then enumerates the visit fields (time, device, browser, country, link parameters, status, answer_id), which lets an agent distinguish this visit log from answer-oriented siblings.

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?

It explains filter semantics in detail (status, param_key/param_value, param_missing, segment_by/segment_value, segment_unknown, period, device), so usage is strongly implied. However, it never explicitly says when to choose this tool over get_quiz_answers or get_quiz_visit_segments, nor when not to use it.

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