Skip to main content
Glama

edit_answer_choice

DestructiveIdempotent

Change the text and/or score of ONE existing answer choice on a question in a BlockSurvey team draft, keeping its id and every other choice untouched (so skip logic, calculations, etc. that reference it keep working). Identify the choice with optionId or choicePosition. Provide value and/or score. For choice-style questions (multiplechoice, checkboxes, dropdown, dropdownmultiple, ranking, colorpicker — for colorpicker, value is a text prompt to pick a color for, e.g. "Preferred logo color"; the respondent picks the actual color when answering) this works on options; for matrix questions you must also say whether you mean rows or columns via target. Not applicable to consent (its choices are fixed) or any other question type without answer choices. Use get_survey_details first to get the question's and choices' current ids.

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": "edit_answer_choice"
  }
}

Input Schema

NameRequiredDescriptionDefault
scoreNoThe choice's new score. Omit to leave unchanged.
valueNoThe choice's new text. Omit to leave unchanged.
targetNoFor matrix questions only: which grid axis to edit. Required if the question is a matrix type, ignored otherwise.
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.
optionIdNoThe existing choice's id, from get_survey_details. Provide this OR choicePosition.
positionNo0-based index into the survey's questions array. Provide this OR questionId, not required to provide both.
surveyIdYesThe Survey ID containing the question
questionIdNoThe question's id, as seen in get_survey_details's output
choicePositionNo0-based index of the existing choice within the question's choice list (e.g. 2 = the 3rd choice). Provide this OR optionId.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and idempotentHint=true, so the safety profile is covered; the description adds genuinely new context about why the id is preserved (skip logic and calculations referencing the choice keep working) and that the tool operates on team drafts. It does not cover permission requirements or what happens on a stale/unknown optionId, so it stops short of a 5.

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?

Front-loaded with the verb, resource, and the invariant that matters most (id and other choices untouched), then conditions. It is a single dense paragraph with nested parentheticals — the colorpicker and matrix clauses are justified, but the sentence is long enough that structure suffers slightly.

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 9-parameter mutation tool with no output schema, the description covers applicability by question type, the matrix axis quirk, the colorpicker special case, and the id-preservation guarantee. It omits failure behavior (invalid optionId), permission/auth needs, and whether published surveys can be edited, which keeps it from being complete.

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: the optionId-or-choicePosition alternative, the matrix-only `target` axis requirement, and the non-obvious colorpicker case where `value` is a prompt text rather than a color. It does not explain `position` vs `questionId` interplay beyond the schema's own note.

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 ('Change the text and/or score of ONE existing answer choice') and pins the scope ('on a question in a BlockSurvey team draft'), which cleanly separates it from add_answer_choice and delete_answer_choice. The 'ONE' emphasis and the id-preservation clause make the mutation semantics unmistakable.

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?

Gives explicit inclusion conditions (choice-style question types listed by name; matrix requires `target`) and explicit exclusions ('Not applicable to consent ... or any other question type without answer choices'). It also names a prerequisite workflow: call get_survey_details first to obtain current ids.

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