Skip to main content
Glama

Create Forms question show condition

forms_conditions_question_create

Add a condition group to a question — it shows only when its conditions match.

Instructions

Add a condition group to a question — it shows only when its conditions match.

The group operator joins the clauses WITHIN it; at least one clause is required. Returns the created group with its server-assigned integer id.

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>",
      "question_id": "<question_id>",
      "body": "<body>"
    },
    "name": "forms_conditions_question_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesThe new group: operator + at least one clause.
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
survey_idYesForm id (24-char hex), from ``surveys_list``.
question_idYesQuestion id (integer) from questions_list.

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

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuinely useful behavior with no output schema available: the tool returns the created group with a server-assigned integer id. It says nothing about whether an existing condition on the question is replaced or supplemented, nor about error behavior — a meaningful gap for a mutation tool whose non-idempotence is flagged.

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?

Three short sentences, front-loaded with the purpose, then the structural rule, then the return value — nothing padded. The middle sentence partially duplicates the schema's operator/items descriptions, which keeps it just short of a 5.

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 a nested-object schema and no output schema, the description correctly covers the return ('the created group with its server-assigned integer id') and the clause-count precondition, so an agent has enough to construct a valid call. The remaining gap is the effect on any pre-existing question condition, which matters because the tool is not idempotent.

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 nested body/items schema already documents type, condition, value, question, operator, and dry_run in detail. The description restates the operator-joins-clauses semantics and the at-least-one-clause rule, both of which the schema already carries, adding little new meaning beyond the schema. Baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource — 'Add a condition group to a question' — plus the semantic effect ('it shows only when its conditions match'). That is far more informative than the bare title. It does not, however, explicitly contrast itself with the sibling update/update_operator variants that also touch question conditions, so an agent must infer the boundary from the name alone.

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

Usage Guidelines3/5

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

It gives an in-context constraint ('at least one clause is required' and how the group operator joins clauses), which implies when this tool is the right one. There is no explicit statement of when to prefer create over forms_conditions_question_update or forms_conditions_question_update_operator, and no prerequisites or failure conditions are spelled out.

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