Skip to main content
Glama

Surveys and quizzes: replace the questions (only until the first response)

set_questions
Idempotent

Surveys and quizzes: replace the questions (only until the first response) Body: { questions: [...] }, 1–50, in order; the whole list is replaced. Each: { type, prompt (≤300 chars), required?, options?, max?, answer?, id? }. type is single (pick one) or multi (pick any) with options (2–20 distinct texts), yesno, likert (disagree…agree), rating (max 5 or 10 stars), short or long (written). Quizzes: answer is the correct option index (single; yesno uses 1 = yes, 0 = no), a list of option indexes (multi), or a list of accepted texts (short); at least one question needs one. Send a question's id back to keep its picture. Refused with 409 once anyone has answered; the answer key can still be fixed with setAnswerKey. Needs the organizer key.

Input Schema

NameRequiredDescriptionDefault
slugYesThe id in the public link, e.g. `scarecrow-contest-2026-ab12` from https://qrvote.org/c/scarecrow-contest-2026-ab12
questionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Adds real context beyond the annotations: the whole list is replaced rather than merged, the organizer key is required, a 409 is returned once anyone has answered, and sending a question's id preserves its picture. Only minor gaps remain, e.g. whether repeated calls re-create ids, which is partly implied by idempotentHint=true.

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?

Dense but front-loaded: the scope constraint and replacement semantics come before the field reference. The opening repeats the title verbatim and the middle is a run-on field dump, but essentially every sentence carries operational information.

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 a two-parameter, fully-replacing mutation with no output schema, the description covers input grammar, auth, ordering, limits, and the 409 failure path. It does not state what the call returns (e.g. whether newly assigned question ids come back), which is the main remaining unknown.

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?

Schema coverage is ~50% and the description more than compensates: it enumerates each question field (type, prompt length, required, options, max, answer, id), defines all seven type values and their option counts, and specifies answer-key formats per type including the yesno 1/0 convention. This is substantially richer than the schema's bare enums.

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 a specific verb and resource (replace the questions of a survey/quiz) plus a hard scope qualifier ('only until the first response'). The agent can distinguish this from set_answer_key and update_settings 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 Guidelines4/5

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

Gives an explicit precondition and failure mode: works only until the first response, otherwise refused with 409, and setAnswerKey is named as the path for fixing the answer key afterwards. It stops short of routing an agent that wants to append or edit individual questions, but the when/when-not is clear.

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