Skip to main content
Glama

Create Forms question

forms_questions_create

Append a question to a form; returns the created Question (note its id).

Instructions

Append a question to a form; returns the created Question (note its id).

body is one of the 12 typed question schemas discriminated by type (string, enum, matrix, …). The new question lands at the end of the form — reposition it afterwards with questions_move.

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": {
      "survey_id": "<survey_id>",
      "body": "<body>"
    },
    "name": "forms_questions_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesTyped question body; the ``type`` tag selects the question schema.
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
survey_idYesForm id (hex ObjectId) to add the question to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.142.2
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "default": false,
      +  "description": "Send nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).",
      +  "type": "boolean"
      +}
  2. First observedv0.67.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds non-obvious behavior beyond that: the call returns the created Question and its id must be noted for later operations, and the question is always placed last. It omits mention of the schema's dry_run preview option, which is relevant for a non-idempotent write.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

Three short sentences, front-loaded with the verb and the key return value, then the body discriminator, then the placement constraint and remedy. No redundant restatement of the name or title.

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 write tool with a highly detailed discriminated-union schema and annotation coverage, the description supplies what the structured data cannot: return value identity (created Question id) and append-at-end behavior. The only real gap is that dry_run is left entirely to the schema.

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%, so baseline is 3. The description echoes that body is one of 12 typed schemas discriminated by type (with examples string, enum, matrix) and clarifies survey_id as the target form, but adds no syntax or format detail beyond what the schema and its discriminator already provide.

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 ("Append a question to a form"), plus the exact placement semantics ("lands at the end of the form"). It also names the follow-up tool (questions_move) for repositioning, so an agent can distinguish it from forms_questions_update and forms_questions_move without opening a 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?

Gives clear operational context: appending always goes to the end, and repositioning is a separate step via questions_move. It does not explicitly say when to prefer forms_questions_update over this tool for modifying an existing question, but the add-vs-modify split is implicit in "Append … a new question gets its own id".

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