Skip to main content
Glama

add_question

Add a new question to an existing BlockSurvey team draft, either appended to the end or inserted at a specific position. Mirrors clicking "Add Question" in the builder and picking a type. For choice-style or matrix questionTypes, you MUST ask the end user for the actual answer choices first — do not invent placeholder options. For questionType 'customerexperience', ask the end user which experience metric they want — NPS, CSAT, or CES — if they haven't already said (don't just default to NPS silently). Then, matching whichever it is: for NPS, ask whether they want a specific scale color theme (Solid / Gradient / 2 Color Bleed via npsTheme) or the default Solid is fine; for CSAT/CES, ask whether they want it shown as a 1-5 Opinion Scale or a Choose Single with text labels (componentType) — the difference is visible to respondents, not a technical detail, so don't pick silently on the user's behalf. Skip asking only if the user has already stated a preference or explicitly says the default is 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>",
      "label": "<label>",
      "questionType": "<questionType>"
    },
    "name": "add_question"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelYesThe question text
exTypeNoOnly for questionType 'customerexperience': which flavor of experience-rating question this is — 'nps' (Net Promoter Score, 0-10 scale), 'csat' (Customer Satisfaction, 1-5 scale), or 'ces' (Customer Effort Score, 1-5 scale). Defaults to 'nps' if omitted. Ignored for every other questionType.
teamIdNoTeam workspace the survey belongs to. Optional: defaults to the team that owns the given surveyId. Must be a team you are a member of.
optionsNoAnswer choices and type-specific settings. REQUIRED — {values: [...]} with 2+ items — for choice-style questionTypes (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). REQUIRED — {rows: [...], columns: [...]}, 2+ each — for matrix questionTypes (matrixrating, matrixratingmultiple, matrixtext, matrixnumber, matrixdropdown, matrixstarrating). The remaining 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 are all optional with sensible defaults if omitted.
npsThemeNoOnly for questionType 'customerexperience' with exType 'nps' (or omitted, since 'nps' is the default): the visual color styling of the 0-10 scale buttons — matches the builder's "NPS theme selection" dropdown. Purely cosmetic, no effect on scoring. Defaults to 'solid' if omitted. Ignored for csat/ces and for every other questionType.
positionNo0-based index to insert the question at (0 to the survey's current question count, inclusive). Omit to append at the end. An out-of-range value is rejected, not clamped.
requiredNoWhether an answer is required. Defaults to true (the builder's own default) if omitted. Not applicable to statement questions — they have no Required toggle in the builder; omit it for those.
surveyIdYesThe Survey ID to add the question to
descriptionNoOptional question description/subtext shown below the question text. Omit for none.
questionTypeYesOne of: singletextbox, commentbox, multiplechoice, checkboxes, dropdown, dropdownmultiple, number, email, date, numberrating, slider, starrating, matrixrating, matrixratingmultiple, matrixtext, matrixnumber, matrixdropdown, matrixstarrating, phonenumber, statement, website, consent, country, ranking, fileupload, imagecapture, payment, customerexperience, signature, colorpicker, list. Choice-style types and matrix types require `options` — see that field's description. If the label promises a specific scale ("on a scale of 1-10", "rate 1 to 5 stars", "select up to 3 files"), set the matching field in `options` (scaleMin/scaleMax, starCount, fileLimit, etc.) so the question actually matches what the label says — don't just phrase the label around a default. customerexperience is the one exception: its scale is fixed by exType (NPS 0-10, or CSAT/CES 1-5), not configurable via `options`.
componentTypeNoOnly for questionType 'customerexperience' with exType 'csat' or 'ces' — matches the builder's "Component Type" dropdown, which only appears for those two (NPS is always numberrating). 'numberrating' (default) renders a plain 1-5 Opinion Scale; 'multiplechoice' renders a Choose Single with the standard fixed labels (csat: Strongly Disagree..Strongly Agree; ces: Very Difficult..Very Easy) — those labels are generated automatically either way, so this only changes which widget the respondent sees. Ignored for exType 'nps' and for every other questionType.

Output Schema

NameRequiredDescriptionDefault
indexYes0-based position the question ended up at
questionIdYes
totalQuestionsYesThe survey's question count after this add

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-destructive, non-idempotent, open-world, so the description doesn't need to restate safety. It adds the key behavioral framing – this mirrors the builder's Add Question action, defaults exist but shouldn't be silently chosen, and placeholder choices are not acceptable. It stops short of noting that repeated calls create duplicate questions (consistent with idempotentHint=false) or what an invalid surveyId/position returns.

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 first two sentences are front-loaded and efficient, but the customerexperience paragraph is long and repeats the same 'don't pick silently' idea three times ('don't just default to NPS silently', 'don't pick silently on the user's behalf', 'Skip asking only if...'). It could be roughly half the length without losing the requirement.

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?

An output schema exists and the input schema is exhaustive, so the description only needs to carry the interaction-policy burden, which it does. For an 11-parameter mutation tool it is adequately complete, with the minor gap that it never mentions duplicate-creation risk or failure conditions on bad position/surveyId.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the schema already explains exType, npsTheme, componentType, and the options sub-fields in detail. The description's parameter talk largely restates enum semantics in prose (NPS/CSAT/CES, Solid/Gradient/2 Color Bleed, Opinion Scale vs Choose Single) rather than adding new meaning.

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 – adding a new question to an existing BlockSurvey team draft – and disambiguates the two modes (append vs. insert at a position). That verb/resource pair is distinct from siblings like update_question, change_question_type, and add_answer_choice.

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 when-to-act guidance for the agent's own interaction behavior: ask the end user for real answer choices on choice/matrix types, ask which experience metric for 'customerexperience', ask about npsTheme or componentType, and a clear exclusion ('Skip asking only if the user has already stated a preference or explicitly says the default is fine').

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