Skip to main content
Glama

QR-код опроса

manage_quiz_qr_code

QR-код опроса: наклейка на столе, слайд на конференции, листовка у стойки. Показывает текущий код и настройки, собирает новый и убирает логотип из центра. Код ведёт на опубликованный опрос, поэтому неопубликованный опрос получает отказ. Загрузить логотип отсюда нельзя — это делают в кабинете, — но уже загруженный код учитывает. Повторный вызов с теми же настройками отдаёт готовый файл и не пересобирает его: каждая сборка списывает место с тарифа.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNoСторона картинки в точках, 100–1000. По умолчанию — как в прошлый раз, иначе 320.
colorNoЦвет кода, шестизначный HEX вида #000000.
forceNoПересобрать код, даже если настройки не менялись.
actionYesЧто сделать: show — текущий код и настройки, generate — собрать код, delete_logo — убрать логотип из центра.
formatNoФормат файла: png, svg или eps. По умолчанию — как в прошлый раз, иначе png.
marginNoПоля вокруг кода, 0–10. По умолчанию 1.
quiz_idYesID опроса.
backgroundNoЦвет фона, шестизначный HEX вида #ffffff.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Adds substantial context beyond annotations: the code targets a published quiz, repeated calls with unchanged settings return the cached file instead of rebuilding, and every build consumes tariff quota. These quota and precondition behaviors are not in the annotations. It stops short of describing the returned artifact's form, and the caching claim sits in mild tension with idempotentHint=false, though the 'force' parameter explains why that flag is false.

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 action semantics and the routing constraint (published-only, no logo upload here) are front-loaded before the caveats. The opening list of use-cases ('sticker', 'slide', 'flyer') is illustrative but adds little operational value, making it slightly longer than strictly necessary.

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?

For an 8-parameter mutation tool with no output schema, the description covers the important gaps: preconditions, quota cost, caching behavior, and the fact that logo upload is out of scope. Only the exact return payload (file/link) is left implicit, which is minor.

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 coverage is 100% and each parameter already documents type, enum, range, and defaults (e.g. size 100–1000, format png default). The description adds no per-parameter syntax beyond the generic word 'settings', so the schema does the work; baseline 3 applies.

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?

States specific verbs and resource: shows the current code/settings, builds a new one (generate), and removes the center logo (delete_logo), all scoped to a quiz's QR code. An agent can distinguish this from siblings like upload_workspace_logo or update_quiz_settings without opening the schema.

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?

Gives clear when/when-not: only for published quizzes (unpublished is rejected), and explicitly says logo upload must be done elsewhere ('это делают в кабинете'). It names a condition rather than a specific sibling tool name, which is slightly less actionable but still routes the agent correctly.

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