Skip to main content
Glama

delete_answer_choice

Destructive

Delete ONE answer choice from a question in a BlockSurvey team draft. This is destructive — confirm with the end user which choice they mean before calling this. Identify the choice with optionId or choicePosition. The question must keep at least 2 choices. Deleting a choice that's still referenced elsewhere is refused unless force is set — tell the user about that in plain language and ask whether they still want to delete it instead of blindly forcing it through. Display logic, discount logic, calculations, feedback, and jump-logic conditions referencing the deleted choice are fully cleaned up automatically once you proceed; only a piped reference is left dangling even with force. 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": "delete_answer_choice"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoDelete even if the choice's id still appears elsewhere in the survey. Only set this after explicitly telling the user about the reference and confirming they still want to proceed.
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.8/5.0
Behavior5/5

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

Well beyond the destructiveHint/readOnlyHint annotations, it discloses the minimum-2-choices invariant, the refusal-on-reference behavior, and exactly what side effects cleanup covers (display, discount, calculation, feedback, jump logic) versus what stays dangling (piped reference). That is the kind of consequence detail an agent needs before a destructive mutation.

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 action and the destructive warning, then moves to mechanics and edge cases. The colorpicker parenthetical is long but disambiguates a genuinely confusing parameter; a few clauses could be trimmed, but nothing is filler.

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 an 8-parameter destructive tool with no output schema, the description covers confirmation protocol, question-type applicability, matrix axis handling, the force/reference decision, and cleanup side effects. An agent has everything needed to call it safely and correctly.

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 baseline would be 3, but the description adds real meaning: `optionId` OR `choicePosition` as alternatives, `target` as matrix-only rows/columns, and a non-obvious reading of `value` for colorpicker as a text prompt for the color. It stops short of covering `position`, `teamId`, or `surveyId` semantics, which the schema handles.

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?

Opens with a specific verb, resource, and scope: 'Delete ONE answer choice from a question in a BlockSurvey team draft.' The emphasis on ONE plus the named sibling operations (add/edit choice) makes it unambiguous which operation this is.

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?

Explicitly states preconditions and exclusions: call get_survey_details first, confirm the choice with the end user, matrix questions require `target`, and it is not applicable to consent or question types without answer choices. It also gives conditional guidance on the `force` path — tell the user and ask rather than blindly forcing.

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