Skip to main content
Glama

Set Survey

set_survey
Destructive

Add or replace a Survey block’s questions. Omit blockId to append with a server-assigned ID, or use an existing Survey ID to edit. Returns blockId for new surveys. Other blocks are preserved. No launch.

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": {
      "testId": "<testId>",
      "questions": "<questions>"
    },
    "name": "set_survey"
  }
}

Input Schema

NameRequiredDescriptionDefault
testIdYes
blockIdNoOmit to append a new survey with a server-assigned ID. Supply an existing survey ID to edit.
questionsYesFollow-up survey questions capture judgments, comparisons, friction and what the researcher wants to learn. Use explicit question objects with unique id, type, question and required fields. open_ended needs question text; multiple_choice, ranking and budget_allocation need at least two non-empty options. allowMultiple applies to multiple_choice. rating needs scaleMin < scaleMax; rating and ranking require scaleLabels.min and scaleLabels.max naming the endpoints; for ranking, scaleLabels.max labels rank 1 (the top of the list) and scaleLabels.min the last rank, e.g. max "Best fit", min "Worst fit". budget_allocation asks testers to split 100 points across options. yes_no asks for a yes/no answer. At most 10 questions per Survey; launch preview reports plan and test-wide limits.
expectedRevisionNoLegacy compatibility only; ignored. Draft revisions are resolved automatically.

Output Schema

NameRequiredDescriptionDefault
urlNoOpen the draft in Uxia.
testIdNo
blockIdNoServer-assigned ID of the added block. Use it for subsequent edits and references.
editableNo
definitionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / expectedRevision / maximum
      Added value: +9007199254740991
    • removedInput schema / properties / questions / items / properties / scaleLabels / additionalProperties
      Removed value: -false
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / definition / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / definition / properties / blocks / items / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / definition / properties / revision / maximum
      Added value: +9007199254740991
  2. Changed1 schema field changed
    • changedInput schema / properties / questions / description
      Previous value: -"Follow-up survey questions capture judgments, comparisons, friction and what the researcher wants to learn. Use explicit question objects with unique id, type, question and required fields. open_ended needs question text; multiple_choice, ranking and budget_allocation need at least two non-empty options. allowMultiple applies to multiple_choice. rating needs scaleMin < scaleMax; rating and ranking require scaleLabels.min and scaleLabels.max naming the endpoints. budget_allocation asks testers to split 100 points across options. yes_no asks for a yes/no answer. At most 10 questions per Survey; launch preview reports plan and test-wide limits."New value: +"Follow-up survey questions capture judgments, comparisons, friction and what the researcher wants to learn. Use explicit question objects with unique id, type, question and required fields. open_ended needs question text; multiple_choice, ranking and budget_allocation need at least two non-empty options. allowMultiple applies to multiple_choice. rating needs scaleMin < scaleMax; rating and ranking require scaleLabels.min and scaleLabels.max naming the endpoints; for ranking, scaleLabels.max labels rank 1 (the top of the list) and scaleLabels.min the last rank, e.g. max \"Best fit\", min \"Worst fit\". budget_allocation asks testers to split 100 points across options. yes_no asks for a yes/no answer. At most 10 questions per Survey; launch preview reports plan and test-wide limits."
  3. Changed2 schema fields changed
    • addedInput schema / properties / expectedRevision / description
      Added value: +"Legacy compatibility only; ignored. Draft revisions are resolved automatically."
    • changedInput schema / required
      Previous value: -[
      -  "testId",
      -  "expectedRevision",
      -  "questions"
      -]New value: +[
      +  "testId",
      +  "questions"
      +]
  4. Changed4 schema fields changed
    • addedInput schema / properties / blockId / description
      Added value: +"Omit to append a new survey with a server-assigned ID. Supply an existing survey ID to edit."
    • addedInput schema / properties / questions / description
      Added value: +"Follow-up survey questions capture judgments, comparisons, friction and what the researcher wants to learn. Use explicit question objects with unique id, type, question and required fields. open_ended needs question text; multiple_choice, ranking and budget_allocation need at least two non-empty options. allowMultiple applies to multiple_choice. rating needs scaleMin < scaleMax; rating and ranking require scaleLabels.min and scaleLabels.max naming the endpoints. budget_allocation asks testers to split 100 points across options. yes_no asks for a yes/no answer. At most 10 questions per Survey; launch preview reports plan and test-wide limits."
    • changedInput schema / required
      Previous value: -[
      -  "testId",
      -  "expectedRevision",
      -  "blockId",
      -  "questions"
      -]New value: +[
      +  "testId",
      +  "expectedRevision",
      +  "questions"
      +]
    • addedOutput schema / properties / blockId
      Added value: +{
      +  "description": "Server-assigned ID of the added block. Use it for subsequent edits and references.",
      +  "type": "string"
      +}
  5. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false. The description adds real context beyond them: scope of destruction ('Other blocks are preserved'), the effect on the test ('No launch'), and that a blockId is returned for new surveys. It still doesn't say whether questions on an edited survey are wholesale replaced versus merged, which matters most for a destructive write.

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

Conciseness5/5

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

Four short sentences, front-loaded with the action, then mode selection, then return value, then side-effect guarantees. Every sentence carries distinct information with no restatement of the title.

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 an output schema present, the description doesn't need to explain return values, and it covers the destructive blast radius, the draft-only ('No launch') behavior, and mode selection. The one meaningful gap is the fate of pre-existing questions when editing a survey, which an agent needs before invoking a destructive replace.

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 75% and the questions array carries an unusually detailed inline description covering per-type requirements, so the schema does most of the work. The description's only added parameter meaning is the blockId append/edit rule, which the schema already states almost verbatim. testId and expectedRevision get no treatment in the description.

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: 'Add or replace a Survey block's questions', and immediately distinguishes the two modes (append vs edit). It does not name any sibling tool, so the agent must infer it is the only survey-question setter, but the operation itself is unambiguous.

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?

Gives clear conditional guidance for the blockId parameter ('omit to append', 'supply existing to edit'), which is genuinely useful mode selection. However, it offers no guidance on when to use this versus other block/survey tools, and no prerequisites such as test state or required permissions.

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