Skip to main content
Glama

update_question

Destructive

Edit an existing question in a BlockSurvey team draft — its label, description, required flag, answer choices, and/or type-specific scale/limit/format settings (scale range, star count, character/value limits, date format, file count limit, list max entries, default phone country — see options' field descriptions). Identify the question with questionId (from get_survey_details) or its 0-based position in the questions array (e.g. the 4th question is position 3). Does NOT support changing a question's fundamental type — that's a separate, more destructive operation in the real app; use change_question_type for that. The one exception is exType on an existing customerexperience question — switching NPS/CSAT/CES is a same-type scale change, not a type change, so it's supported here directly (no need to delete and re-add). npsTheme (cosmetic NPS scale coloring) is also editable directly, same reasoning. For choice-style or matrix questions, if you're changing the answer choices you MUST ask the end user for the actual new choices first — do not invent them. options.values/rows/columns REPLACE the choices entirely and generate fresh ids for them — if any discarded choice is still referenced elsewhere as a piped reference, the call is refused unless force is set; tell the user about that instead of blindly forcing it through — piped references are left dangling even with force. Display logic, discount logic, calculations, feedback, and jump-logic conditions are NOT left dangling: if a discarded choice is referenced in any of those, it's always fully cleaned up once the replace proceeds (check displayLogicCleaned/discountLogicCleaned/calculationsCleaned/feedbackCleaned/jumpLogicCleaned in the result) — and the refusal message says so distinctly when that's the only kind of reference found. If you're only adding, renaming, or removing specific choices rather than replacing the whole list, prefer add_answer_choice / edit_answer_choice / delete_answer_choice instead — it edits choices in place and never has this problem. Changing a scale/range field doesn't have that same dangling-reference risk, but can still make existing skip logic or a calculation referencing this question stop making sense against the new range — the response will flag it if that's a possibility, so relay that to the user rather than assuming everything downstream is still fine.

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": {
      "surveyId": "<surveyId>"
    },
    "name": "update_question"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoReplace the answer choices even though a discarded choice is still referenced elsewhere in the survey. Only a piped reference is left dangling, not cleaned up. Display logic, discount logic, calculations, feedback, and jump-logic conditions are always fully cleaned up once you proceed, never dangling. Only set this after explicitly telling the user what was found and getting their confirmation. Ignored unless `options` is also provided.
labelNoNew question text. Omit to leave unchanged.
exTypeNoOnly applies to an existing 'customerexperience' question — switches it between 'nps' (Net Promoter Score, 0-10 scale), 'csat' (Customer Satisfaction, 1-5 scale), and 'ces' (Customer Effort Score, 1-5 scale) in place, adjusting the scale to match. Ignored for every other question type. Omit to leave unchanged.
teamIdNoWhich team workspace to act in (ids come from get_account_info or list_surveys). Optional: if omitted, the server uses the team that owns the given surveyId, or your only team. Required for create_survey when you belong to several teams.
optionsNoChanges to answer choices and/or type-specific settings — every field replaces or updates only what you provide, everything else on the question is left as-is. Answer choices: {values: [...]} for choice-style questions (multiplechoice, checkboxes, dropdown, dropdownmultiple, ranking, colorpicker — for colorpicker, values are text prompts to pick a color for, e.g. "Preferred logo color"; the respondent picks the actual color when answering, there's no way to assign colors to options here), {rows: [...], columns: [...]} for matrix questions — replaces the existing ones entirely, only valid for questions of those types. Scale/limit/format fields (columnOptions/scaleMin/scaleMax/scaleStep/starCount/limitMin/limitMax/dateFormat/timeFormat/fileLimit/listLimit/countryCode/countryName) are each only relevant to specific questionTypes — see each field's own description — and silently ignored on a question of any other type. Call get_survey_details first if you're unsure of a question's existing type/bType. Omit entirely if you're changing neither.
npsThemeNoOnly applies to an existing 'customerexperience' question whose exType is (or is being changed to, via `exType` in this same call) 'nps' — the visual color styling of the 0-10 scale buttons, matching the builder's "NPS theme selection" dropdown. Purely cosmetic. Ignored/stripped for csat/ces and for every other question type. Omit to leave unchanged. Note: this tool has no equivalent of the builder's "Component Type" toggle (Opinion Scale vs. Choose Single for csat/ces) — it's implemented as a type change under the hood (regenerates the question's id), so it lives on change_question_type instead: call that with questionType: 'customerexperience' and componentType set to the target.
positionNo0-based index into the survey's questions array. Provide this OR questionId, not required to provide both.
requiredNoWhether an answer is required. Omit to leave unchanged.
surveyIdYesThe Survey ID containing the question
questionIdNoThe question's id, as seen in get_survey_details's output
descriptionNoNew question description. Omit to leave unchanged.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, but the description goes well beyond them: it discloses that options.values/rows/columns REPLACE choices entirely and regenerate ids, that piped references block the call unless force is set, that piped references stay dangling even with force, and that display/discount/calculation/feedback/jump-logic references are always cleaned up with corresponding *Cleaned flags in the result. That is exactly the operational risk context an agent needs before a destructive call.

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

Conciseness3/5

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

Purpose is front-loaded in the first sentence, but the body is one very long paragraph that mixes routing guidance, replacement semantics, reference-cleanup rules, and edge cases together, making it hard to scan. The dangling-reference cleanup material is also substantially restated in the `force` parameter description, so some sentences do not fully earn their place.

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?

For a destructive 11-parameter tool with nested options, no output schema, and many type-dependent fields, the description covers the failure modes (refusal, force, dangling piped references), the cleanup guarantees, and the sibling alternatives. Nothing an agent needs to call this correctly and safely appears to be missing.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning: it points the agent at the nested `options` field descriptions for type-specific settings, explains questionId vs. 0-based position addressing with a concrete example ('the 4th question is position 3'), and clarifies that scale/limit/format fields are silently ignored on mismatched question types. It does not re-explain every field, which is appropriate given the schema already carries that.

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 first sentence names a specific verb and resource ('Edit an existing question in a BlockSurvey team draft') and enumerates the editable surface (label, description, required flag, choices, type-specific settings). It explicitly carves out what it does NOT do ('Does NOT support changing a question's fundamental type') and names the sibling that does, so an agent can separate it from change_question_type without opening either schema.

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

Usage Guidelines5/5

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

Explicit when/when-not routing: use change_question_type for type changes, use add_answer_choice/edit_answer_choice/delete_answer_choice for incremental choice edits rather than a full replace, call get_survey_details first if the question type is unknown, and ask the end user for actual new choices instead of inventing them. The exType/npsTheme exceptions are explained with their reasoning so the agent knows why they are not type changes.

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