Skip to main content
Glama
render-question-mcp

render-question-mcp

by vltansky

Render Question Form

render_question

Render native UI question forms to collect structured, validated user input, replacing back-and-forth chat with clear fields, options, and validation rules.

Instructions

Render custom question forms and collect structured, validated user input through native UI forms.

QUESTION TYPES:

  • text: Single-line or multi-line text input (supports email, URI, date formats)

  • number: Numeric input with min/max constraints

  • boolean: Single checkbox/toggle (true/false)

  • radio: Single choice from options (radio buttons)

  • dropdown: Single choice from options (select menu)

  • checkbox: IMPORTANT - Use WITHOUT options for boolean fields. For multi-select, use multiple separate boolean/checkbox questions instead (MCP elicitation protocol doesn't support arrays).

MULTI-SELECT WORKAROUND: Due to MCP elicitation protocol limitations, true multi-select (array responses) is not supported. To create multi-select questions:

  1. Create multiple separate checkbox/boolean questions, one per option

  2. Each question should have a unique id (e.g., "interest_coding", "interest_design")

  3. User can check multiple boxes independently

  4. Response will contain separate boolean fields for each option

EXAMPLES: Single boolean checkbox: { id: "agree", type: "checkbox", label: "I agree", validation: { required: true } }

Multi-select (workaround): [ { id: "lang_typescript", type: "checkbox", label: "TypeScript" }, { id: "lang_python", type: "checkbox", label: "Python" }, { id: "lang_rust", type: "checkbox", label: "Rust" } ]

Single choice: { id: "role", type: "dropdown", label: "Role", options: [{value: "dev", label: "Developer"}] }

VALIDATION:

  • required: boolean - Field must be filled

  • min/max: number - For number type (value constraints) or checkbox with options (minItems/maxItems)

  • minLength/maxLength: number - For text type (character count)

  • pattern: string - Regex pattern for text validation

  • format: "email" | "uri" | "url" | "date" | "date-time" - For text type only

  • errorMessage: string - Custom validation error message

Use this tool instead of conversational back-and-forth when you need structured, validated data from users.

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": {
      "questions": "<questions>"
    },
    "name": "render_question"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoOptional title displayed at the top of the form
questionsYesArray of questions to ask the user. For multi-select, use multiple checkbox questions (one per option) instead of checkbox with options array.
descriptionNoOptional description/instructions shown below the title

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses MCP elicitation protocol limitations (no array responses), prescribes a workaround, and explains that responses are keyed by question id. It does not state whether the call blocks awaiting user submission, what happens if the user dismisses the form, or how failures surface — meaningful gaps for a UI-interaction tool.

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 header-based structure (QUESTION TYPES / MULTI-SELECT WORKAROUND / EXAMPLES / VALIDATION) is front-loaded and scannable. But the multi-select limitation is restated three separate times and the VALIDATION section largely duplicates field descriptions already present in the schema, adding length without new information.

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?

With no output schema and no annotations, the description must supply the behavioral contract, and it covers input construction thoroughly plus the response-keying model. It stops short of describing the overall response shape (beyond the multi-select case) or error/cancellation behavior, which leaves a modest gap for a tool whose output is entirely undocumented.

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 already 100%, so the baseline is 3; the description earns above that by explaining type semantics (text/number/radio/dropdown) and the multi-select workaround with concrete examples. However, it never clearly distinguishes 'boolean' from 'checkbox' — both are described as single true/false inputs — leaving an agent to guess which to use.

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 opening sentence states a specific verb and resource — 'Render custom question forms and collect structured, validated user input through native UI forms' — which tells an agent exactly what the tool produces and why. The enumeration of question types immediately reinforces the scope, so intent is unambiguous without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

The closing line gives an explicit routing rule: 'Use this tool instead of conversational back-and-forth when you need structured, validated data from users.' That names both the condition and the alternative. What's missing is an explicit when-not case — e.g. when a single yes/no confirmation or when non-UI channels are preferred — so the guidance is clear but not exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools