Skip to main content
Glama

Question Create

question_create

Add one question at a position in a survey. Scales: opinion_scale itemDetails { min_value: 0 or 1 (default 1), max_value: 5 to 10 (default 10), nps: true for a 0 to 10 Net Promoter Score }, end labels in textItemDetails { min_value_label, max_value_label }; rating itemDetails { scale: 5 to 11 (default 5) }, end labels in textItemDetails { min_label, max_label }. Several short answers in one question (ideas, notes, action items): short_text itemDetails.multiple_entries = { min: 0 to 20, max: 1 to 20, min <= max }; the respondent adds one entry per row and the answer is stored as the entries joined by newlines; null turns it off. It can't be combined with unique_answer or share_results. Find a time polls (itemDetails.find_a_time, find_a_time_zone) can't be created or re-zoned here: add them in the QuestionPunk editor. Choice labels belong in item.textItemDetails.answer_options as an array of strings; item.itemDetails holds behavior settings such as multiple_selection. Example single choice: {"text":"How easy was setup?","answer_type":"multiple_choice","required":true,"textItemDetails":{"answer_options":["Easy","Difficult"]}}.

Call survey_get first for versions.current (pass it as surveyVersion) and the question count; to add at the end, surveyItemIndex = that count. The result returns the next surveyVersion for your next edit. To add several questions at the end, use question_create_bulk (one call). You write the question text; this tool generates nothing. On a published survey the new question is live at once.

For AI interviews use answer_type 'ai_moderated_interview': it supersedes ai_interview and ai_audio_interview. Set itemDetails.modality to 'text' (default) or 'voice'; put interviewGoal, greetingInstruction and avoidTopics in item.textItemDetails; its other settings match the two older types below, except context from earlier answers, which follows the modality (see the next paragraph).

Voice interviews (ai_moderated_interview with modality 'voice', ai_audio_interview): a new one needs itemDetails.timeoutMs, its length in ms (60000 to 14400000, e.g. 600000 for 10 minutes); each interview uses the survey owner's credits for every minute it runs. A non-empty greetingInstruction is spoken word for word on a pipeline session (itemDetails.greetingVerbatim false lets the interviewer phrase it); leave it empty to let the interviewer open on its own. The typed-interview settings endOnStopRequest, timeBasedCompletionConfig (with its terminationCriteria) and durationMinutes do nothing in a voice session and are rejected on one.

Context from earlier answers: itemDetails.referenceSources = { perRespondent: { enabled, mode: 'all' | 'selected', selectedQuestionIds }, thisSurvey: { enabled, mode, selectedQuestionIds }, externalSurveys: [{ surveyId, surveyTitle, mode, selectedQuestionIds }], priorWaves?: { enabled, depth: 'last_wave' | 'all_waves', mode, selectedQuestionIds } }; thisSurvey and externalSurveys are required whenever referenceSources is sent. perRespondent is this respondent's own earlier answers, given to the interviewer as they answered (long answers shortened). thisSurvey and externalSurveys give it a summary or answer counts of other respondents' answers, never quotes, and skip types they can't summarize (email, uploads and similar) and questions with fewer than 3 answers. priorWaves is a diary participant's earlier check-ins. Voice interviews (ai_audio_interview, ai_moderated_interview with modality 'voice', usability_test) read the respondent's own answers only from referenceSources.perRespondent: reference_questions has no effect on them. Text interviews (ai_interview, ai_moderated_interview with modality 'text') read them from reference_questions with referenceQuestionsMode, so set those and referenceSources.perRespondent to the same questions.

For a numbered scale use answer_type 'opinion_scale'; a 0 to 10 scale needs itemDetails { min_value: 0, max_value: 10 }. itemDetails { nps: true } also labels the ends "Not at all likely" and "Extremely likely" in English.

Older AI Interview questions (answer_type: 'ai_interview') take:

  • itemDetails.length: Number of exchanges (default: 5, used in fixed_count mode)

  • itemDetails.reference_questions: Array of UUIDs of PREVIOUS questions. The text interviewer sees the respondent's answers to these questions as context (text interviews only; see referenceSources above).

  • itemDetails.personality: { kind: 'preset', code: 'expert_interviewer' | 'friendly_interviewer' | 'focus_group_moderator' | 'researcher' | 'detective' | 'stubborn_interrogator' | 'comedian' } or { kind: 'custom', id: '' }

  • itemDetails.thinkingMode: 'fast' (default) or 'slow' for deeper reasoning

  • itemDetails.questionMode: 'fixed_count' (default) | 'ai_decides' | 'time_based'

  • itemDetails.aiDecidesConfig: { minQuestions: number, maxQuestions: number, stoppingGuidance?: string } (for ai_decides mode)

  • itemDetails.durationMinutes: number (for time_based mode, default: 10)

  • itemDetails.advancedSettings: { temperature?: number, maxTokens?: number, enableFollowUpProbing?: boolean, responseStyle?: 'concise'|'detailed'|'conversational' }

  • itemDetails.aiModel: { type: 'direct', model: '' } (optional; the app picks a default)

  • itemDetails.showContinueButton: boolean (show start button before interview, default: false)

  • itemDetails.aiFailureBehavior: 'complete_survey' (default) | 'pause_survey' | 'skip_to_next' | 'skip_question'

  • itemDetails.endOnStopRequest: boolean (text interviews only: when the respondent clearly asks to stop, the interviewer asks once whether to end or keep going and a clear yes ends the interview, default: true; false = it runs to its configured length)

Older AI Audio Interview questions (answer_type: 'ai_audio_interview') take:

  • itemDetails.timeoutMs: the interview's length in ms, required when creating one (60000 to 14400000)

  • itemDetails.recordingMode: 'none' | 'audio' | 'video'

  • itemDetails.sessionConfig: { type, sttModel, ttsModel } voice pipeline config

  • itemDetails.promptMode: 'standard' (default) | 'custom'

  • itemDetails.showContinueButton: boolean (default: false)

  • itemDetails.greetingInstruction: string (the opening line; a non-empty one is spoken word for word on a pipeline session unless greetingVerbatim is false; empty lets the interviewer open on its own)

  • itemDetails.interviewGoal: string (goal for the AI interviewer)

  • itemDetails.avoidTopics: string (topics to avoid)

For usability tests (answer_type: 'usability_test'), the question starts with one empty website task, screen share required and voice moderation. Describe tasks in itemDetails.guidedTask.tasks[] ({ id, order, scenario, targetType: 'website' | 'prototype' | 'native_app' | 'none', ... }); fetch the question with survey_get and edit it with question_update. A Figma prototype task uses targetType 'prototype', its Figma presentation link (https://www.figma.com/proto/..., kept unchanged with its query parameters) as targetUrl, and an optional figmaPrototype { startNodeId?: 'n:m', goalNodeIds?: ['n:m', ...] (at most 10) } naming the start screen and goal screens by Figma node id; goal screens are observations in recorded sessions, never automatic task completion.

Signature, file_upload, photo_response and consent questions get working defaults; for consent, set item.textItemDetails.statement and agree_label.

Gabor-Granger price ladder (answer_type 'gabor_granger'): itemDetails { prices: 2 to 12 distinct positive numbers (required; stored ascending), price_order: 'random' (default, shuffled per respondent) | 'ascending' | 'descending', currency_prefix (default '$') and currency_suffix (default ''), up to 8 characters each }; the respondent answers yes or no at each price, and the question text names the product. Its textItemDetails stay empty. Kano (answer_type 'kano'): textItemDetails { features: 2 to 20 short feature names, functional_questions and dysfunctional_questions: one per feature in the same order, e.g. 'If the app has dark mode, how would you feel?' and 'If the app does not have dark mode, how would you feel?' } (all required); itemDetails { ask_importance: false (true adds a 1 to 9 importance rating per feature), randomize_features: true }. The five Kano answers are fixed and translated by the app. An existing question can't be changed into either type: create a new one.

Gallery voting (design sprint "art museum"): a design question (answer_type 'design') with itemDetails.gallery { sourceSurveyId, sourceItemId, pickCount?, max? } shows each respondent the images other respondents uploaded to that photo_response or file_upload question, without names. A person's own upload is left out when the source question is in the same survey, or in a diary study's earlier wave (the same participant); with a source in another, non-diary survey a person may see their own. The source question must be in a survey you own and must have itemDetails.share_with_respondents: true (set it on the upload question; uploaders are then told their upload will be shown, without their name, to other people taking part; only uploads made while it is on, through a page that showed that notice, are shown; uploads from the mobile app are not shared yet). pickCount (1-24) lets each person pick that many images (a straw poll, or 1 for a Decider's supervote); max (1-24, default 12) caps the images shown. Leave assetUrls and assetIds empty.

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>",
      "surveyVersion": "<surveyVersion>",
      "lang": "<lang>",
      "surveyItemIndex": "<surveyItemIndex>",
      "item": "<item>"
    },
    "name": "question_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemYes
langYesLanguage code of the text you write; one of the survey's languages (survey_get), usually its primary one
surveyIdYesSurvey ID (from survey_list)
surveyVersionYesCurrent survey version: versions.current from survey_get, or the surveyVersion your last edit returned. A stale version is rejected (WRONG_VERSION). The result returns the next one as surveyVersion.
surveyItemIndexYes0-based position to insert the question. Use the current question count to add it at the end.
surveyItemGroupIdNoOptional group ID to create question inside

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / item / properties / answer_type / enum
      Previous value: -[
      -  "opinion_scale",
      -  "slider",
      -  "slider_matrix",
      -  "rating",
      -  "multiple_choice",
      -  "ai_interview",
      -  "ai_audio_interview",
      -  "ai_question",
      -  "ai_moderated_interview",
      -  "usability_test",
      -  "long_text",
      -  "short_text",
      -  "email",
      -  "phone_number",
      -  "matrix",
      -  "address",
      -  "date",
      -  "contact_form",
      -  "dropdown",
      -  "chat_message",
      -  "page",
      -  "chat_reset",
      -  "website",
      -  "ranking",
      -  "numeric",
      -  "audio_record",
      -  "video_record",
      -  "button",
      -  "constant_sum",
      -  "distribution_builder",
      -  "van_westendorp",
      -  "max_diff",
      -  "card_sorting",
      -  "conjoint_analysis",
      -  "heatmap_click",
      -  "text_highlight",
      -  "signature",
      -  "file_upload",
      -  "photo_response",
      -  "payment",
      -  "ai_image_generation",
      -  "concept_test",
      -  "concept_explore",
      -  "concept_converge",
      -  "concept_final",
      -  "linkedin_verification",
      -  "google_verification",
      -  "email_verification",
      -  "phone_verification",
      -  "vignette_experiment",
      -  "list_experiment",
      -  "consent",
      -  "design",
      -  "open_text"
      -]New value: +[
      +  "opinion_scale",
      +  "slider",
      +  "slider_matrix",
      +  "rating",
      +  "multiple_choice",
      +  "ai_interview",
      +  "ai_audio_interview",
      +  "ai_question",
      +  "ai_moderated_interview",
      +  "usability_test",
      +  "long_text",
      +  "short_text",
      +  "email",
      +  "phone_number",
      +  "matrix",
      +  "address",
      +  "date",
      +  "contact_form",
      +  "dropdown",
      +  "chat_message",
      +  "page",
      +  "chat_reset",
      +  "website",
      +  "ranking",
      +  "numeric",
      +  "audio_record",
      +  "video_record",
      +  "button",
      +  "constant_sum",
      +  "distribution_builder",
      +  "van_westendorp",
      +  "max_diff",
      +  "card_sorting",
      +  "conjoint_analysis",
      +  "heatmap_click",
      +  "text_highlight",
      +  "signature",
      +  "file_upload",
      +  "photo_response",
      +  "payment",
      +  "ai_image_generation",
      +  "concept_test",
      +  "concept_explore",
      +  "concept_converge",
      +  "concept_final",
      +  "linkedin_verification",
      +  "google_verification",
      +  "email_verification",
      +  "phone_verification",
      +  "vignette_experiment",
      +  "list_experiment",
      +  "consent",
      +  "design",
      +  "gabor_granger",
      +  "kano",
      +  "open_text"
      +]
    • changedInput schema / properties / item / properties / itemDetails / description
      Previous value: -"Non-translatable behavior settings. For multiple_choice: { multiple_selection: false, randomize_options: false }; on a select-all question, exclusiveOptionIndices: [index] marks options that clear every other pick (an authored \"None of these\"). Option labels belong in textItemDetails.answer_options. For opinion_scale: { min_value: 0 or 1, max_value: 5 to 10, nps: true for Net Promoter Score }. For ai_interview: { length, reference_questions, personality, thinkingMode }. For a voice interview (ai_moderated_interview with modality voice, ai_audio_interview): { modality: \"voice\", timeoutMs } (timeoutMs, its length in ms, is required); endOnStopRequest, timeBasedCompletionConfig and durationMinutes are rejected there."New value: +"Non-translatable behavior settings. For multiple_choice: { multiple_selection: false, randomize_options: false }; on a select-all question, exclusiveOptionIndices: [index] marks options that clear every other pick (an authored \"None of these\"). Option labels belong in textItemDetails.answer_options. For opinion_scale: { min_value: 0 or 1, max_value: 5 to 10, nps: true for Net Promoter Score }. For ai_interview: { length, reference_questions, personality, thinkingMode }. For a voice interview (ai_moderated_interview with modality voice, ai_audio_interview): { modality: \"voice\", timeoutMs } (timeoutMs, its length in ms, is required); endOnStopRequest, timeBasedCompletionConfig and durationMinutes are rejected there. For gabor_granger: { prices: [2 to 12 positive numbers], price_order, currency_prefix, currency_suffix } (prices required)."
    • changedInput schema / properties / item / properties / textItemDetails / description
      Previous value: -"Localized question configuration. Choice types require { answer_options: [string, ...] }. Matrix uses { rows: [string, ...], columns: [string, ...] }. Rating labels and other type-specific text also belong here."New value: +"Localized question configuration. Choice types require { answer_options: [string, ...] }. Matrix uses { rows: [string, ...], columns: [string, ...] }. Kano requires { features, functional_questions, dysfunctional_questions }, parallel string arrays. Rating labels and other type-specific text also belong here."
  2. Changed1 schema field changed
    • changedInput schema / properties / item / properties / itemDetails / description
      Previous value: -"Non-translatable behavior settings. For multiple_choice: { multiple_selection: false, randomize_options: false }; on a select-all question, exclusiveOptionIndices: [index] marks options that clear every other pick (an authored \"None of these\"). Option labels belong in textItemDetails.answer_options. For opinion_scale: { min_value: 0 or 1, max_value: 5 to 10, nps: true for Net Promoter Score }. For ai_interview: { length, reference_questions, personality, thinkingMode }"New value: +"Non-translatable behavior settings. For multiple_choice: { multiple_selection: false, randomize_options: false }; on a select-all question, exclusiveOptionIndices: [index] marks options that clear every other pick (an authored \"None of these\"). Option labels belong in textItemDetails.answer_options. For opinion_scale: { min_value: 0 or 1, max_value: 5 to 10, nps: true for Net Promoter Score }. For ai_interview: { length, reference_questions, personality, thinkingMode }. For a voice interview (ai_moderated_interview with modality voice, ai_audio_interview): { modality: \"voice\", timeoutMs } (timeoutMs, its length in ms, is required); endOnStopRequest, timeBasedCompletionConfig and durationMinutes are rejected there."
  3. Changed1 schema field changed
    • changedInput schema / properties / item / properties / itemDetails / description
      Previous value: -"Non-translatable behavior settings. For multiple_choice: { multiple_selection: false, randomize_options: false }. Option labels belong in textItemDetails.answer_options. For opinion_scale: { min_value: 0 or 1, max_value: 5 to 10, nps: true for Net Promoter Score }. For ai_interview: { length, reference_questions, personality, thinkingMode }"New value: +"Non-translatable behavior settings. For multiple_choice: { multiple_selection: false, randomize_options: false }; on a select-all question, exclusiveOptionIndices: [index] marks options that clear every other pick (an authored \"None of these\"). Option labels belong in textItemDetails.answer_options. For opinion_scale: { min_value: 0 or 1, max_value: 5 to 10, nps: true for Net Promoter Score }. For ai_interview: { length, reference_questions, personality, thinkingMode }"
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, the description discloses important behavior: a new question is live immediately on a published survey, stale surveyVersion values are rejected with WRONG_VERSION, and the result returns the next surveyVersion. It also covers credit consumption for voice interviews, voice-session restrictions, immutability of certain answer-type changes, and gallery-voting source requirements.

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 core usage guidance is front-loaded, but the description is extremely long and dense, with many type-specific details packed into a single block. Most content is relevant for this complex tool, but the lack of clear sectioning and the sheer volume make it harder to scan than necessary.

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 complex question-creation tool with many answer types, the description is highly complete. It covers prerequisites, versioning, live-edit behavior, voice-interview constraints, AI interview settings, usability tests, gallery voting, and several specialized question types, while the output schema handles return-value structure.

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

Parameters5/5

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

Although schema description coverage is already high at 83%, the description adds substantial meaning beyond the schema. It explains surveyVersion staleness, surveyItemIndex as a 0-based insertion point, lang as one of the survey's languages, and gives detailed answer_type-specific semantics for itemDetails and textItemDetails, including examples.

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?

The description opens with a specific verb and resource: 'Add one question at a position in a survey.' It also distinguishes this tool from question_create_bulk for adding several questions at the end, so an agent can identify the correct tool without opening sibling schemas.

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?

It gives explicit prerequisites, including calling survey_get first for versions.current and the question count, and explains how to compute surveyItemIndex for appending. It also names alternatives and exclusions: use question_create_bulk for several questions at the end, use the QuestionPunk editor for find-a-time polls, and use question_update for usability-test task editing.

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