Skip to main content
Glama

reorder_questions

DestructiveIdempotent

Reorder the top-level questions in a BlockSurvey team draft. Give the COMPLETE new order as a list of question ids — call get_survey_details first to see the current ids and order. To swap two questions (e.g. move the 5th question to where the 9th is, and vice versa), take the current id list, swap those two entries, and pass the whole list back; for a bulk reorder, pass the whole list in its new order. This only changes order — it never adds or removes questions (use add_question / delete_question for that) — and it only reaches top-level questions, not ones nested inside a question group or A/B test. If the new order would flip a skip-logic condition, a piped/recalled reference, a loop reference, or the randomization range so that it now points at a question moved to the wrong side, the call is refused unless force is set — tell the user about that instead of blindly forcing it through.

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>",
      "orderedQuestionIds": "<orderedQuestionIds>"
    },
    "name": "reorder_questions"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoReorder even if it would flip a reference that depends on question order (skip logic, piped/recalled text, loop references, randomization range). That reference is left pointing the wrong way, not fixed up. Only set this after explicitly telling the user about it and confirming they still want to proceed.
teamIdNoWhich team workspace to act in (ids come from get_account_info or list_surveys). Optional: if omitted, the server uses the team that owns the given surveyId, or your only team. Required for create_survey when you belong to several teams.
surveyIdYesThe Survey ID to reorder
orderedQuestionIdsYesThe complete new order of the survey's top-level question ids — must be a permutation of the ids get_survey_details currently returns for this survey (same set, same length, just reordered).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructive=true and idempotent=true, and the description adds the crucial behaviors: only order changes, never add/remove, top-level only (no nested groups or A/B tests), and the call is refused when skip logic, piping, loops, or randomization ranges would flip unless force is set — with the warning that force leaves references pointing the wrong way. That is meaningful disclosure beyond the annotations; only the exact refusal error surface is unstated.

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?

Front-loaded with purpose and scope, then workflow, then exclusions and refusal behavior — a logical progression. It is dense but long, and the force caveat is partially repeated from the schema description, costing some economy.

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 destructive mutation with no output schema, the description covers what changes, what does not, which questions are reachable, the prerequisite read call, and the refusal/force path with user-communication guidance. Nothing an agent needs to invoke it safely is missing.

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 100%, so baseline is 3, but the description adds real meaning: orderedQuestionIds must be the COMPLETE list sourced from get_survey_details, and force deliberately does not repair flipped references. The preconditions for each parameter are clearer than the schema alone.

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 — reordering top-level questions in a BlockSurvey team draft — and immediately bounds the scope against siblings that add or remove questions. An agent can distinguish it from update_question or add_question 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 Guidelines5/5

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

Explicitly tells the agent to call get_survey_details first, explains the swap workflow, distinguishes bulk reorder from pairwise swap, names add_question/delete_question as the tools for structural changes, and instructs the agent to surface refusal conditions to the user rather than setting force blindly.

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