Skip to main content
Glama

delete_question

Destructive

Delete a question from a BlockSurvey team draft. Identify it with questionId (from get_survey_details) or its 0-based position in the questions array (e.g. the 4th question is position 3). This is destructive — always confirm with the end user which question they mean before calling this, especially when they refer to it by number or description rather than an exact id. If the question turns out to be referenced elsewhere in the survey — skip logic (including another question's rule that skips TO it), another question's default jump-to, calculations, feedback, validation logic, discount logic, display logic, duplicate submission logic, loop references, the randomization range, piped references, or email notification — the call is refused with a message describing what was found; ask the user in plain language whether they still want to delete it, then retry with force: true once they say yes. Every category above EXCEPT piped references and email notification is fully cleaned up automatically on that retry, nothing left dangling; those two are left dangling even with force. Also reports (never blocking, just informational) if this question itself has custom regex validation rules or a Default Feedback fallback configured — both are simply discarded when the question is deleted, since neither can ever be referenced by anything else. The refusal message ends with an AGENT_NOTE aimed at you, the calling model: never quote that message or mention the force parameter to the end user — just ask a plain yes/no about deleting the question.

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_question"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoDelete even if the question appears to be referenced elsewhere in the survey (logic/calculations/etc). Only piped references and email-notification references are left dangling — every other category is always fully cleaned up regardless. Only set this after asking the end user in plain language (no tool/parameter jargon) whether they still want to proceed, and they said yes.
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.
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

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 destructiveHint=true and idempotentHint=false, but the description goes well beyond them: it enumerates the reference categories that cause a refusal, states which categories are auto-cleaned on force versus left dangling (piped references, email notification), and notes that regex validation and Default Feedback are silently discarded. It does not describe the return payload of a successful delete, which keeps it from 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.

Conciseness3/5

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

The purpose and confirmation guidance are front-loaded, which is good, but the single dense paragraph carries a long enumeration of reference categories that partly duplicates the force parameter's schema description. The AGENT_NOTE is useful but adds to an already bloated block.

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 mutation with no output schema, the description covers the confirmation requirement, the refusal behavior and its message shape, the force escape hatch, post-delete cleanup guarantees, and dangling-reference caveats. An agent has everything needed to call it correctly and safely.

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; the description still adds value by clarifying that position is 0-based with a concrete example ("the 4th question is position 3") and pointing to get_survey_details as the source of questionId. Force semantics are restated rather than newly explained.

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 with scope ("Delete a question from a BlockSurvey team draft") and immediately explains the two ways to identify the target (questionId or 0-based position). This is clearly distinct from siblings like delete_answer_choice or update_question without the agent needing to open 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 Guidelines5/5

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

Gives an explicit operational workflow: confirm with the end user before calling, and if the call is refused, ask in plain language and retry once with force: true. It also specifies the exact condition that triggers the refusal path, leaving nothing to inference.

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