Skip to main content
Glama

set_question_required

DestructiveIdempotent

Set whether a question in a BlockSurvey team draft requires an answer — the "Required" checkbox in the builder. Identify the question with questionId (from get_survey_details) or its 0-based position (the 4th question is position 3). Rejected for questiongroup, statement, and A/B test questions — the builder has no Required toggle for those at all. For a matrix question this is the same field as "Required: One response per row". For a contact form question, toggling this also toggles every one of its fields.

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>",
      "required": "<required>"
    },
    "name": "set_question_required"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
requiredYestrue to require an answer, false to make it optional
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 readOnly=false, destructive=true, and idempotent=true, so the safety profile is partly covered. The description adds genuinely non-obvious behavior: which question types are rejected, and the cascading side effect that a contact form question toggles every one of its fields. It does not mention auth/team permission requirements or what is returned.

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-loads the action and the target, then layers identification, exclusions, and special cases in short clauses. Dense but every sentence carries an operational detail; minor redundancy in restating the checkbox metaphor twice.

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 mutation tool with no output schema, the description covers targeting, rejected inputs, and side effects well. The remaining gap is the absence of any statement about return values or confirmation, and no note on whether the survey must be a draft versus published.

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 names the source of questionId (get_survey_details), explains that position is 0-based with a concrete example, and states that questionId or position are alternatives. That goes beyond the schema text for those fields.

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 — setting the "Required" checkbox on a question in a BlockSurvey team draft — and maps it to a concrete builder UI control. This clearly differentiates it from siblings like update_question or add_question.

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 identification options (questionId from get_survey_details, or 0-based position with a worked example) and explicit exclusions: rejected for questiongroup, statement, and A/B test questions because the builder has no Required toggle for them. It also flags special cases (matrix question = "Required: One response per row"; contact form question toggling all fields).

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