Skip to main content
Glama

update_jump_logic

Destructive

Edit a question's Jump Logic. Identify the question with questionId/position (call get_jump_logic first to see current entries and their indices). Provide EXACTLY ONE of these modes: (1) conditions and/or skipTo together with entryIndex — edits that entry in place (these two can be combined in one call, matching the builder where both fields are independently editable on the same entry at once: conditions replaces the entry's whole condition list, skipTo changes its jump target to another question's id or "end"); (2) deleteConditionIndex with entryIndex — removes one condition from that entry (if that empties it, the entry is removed too, nothing left dangling); (3) deleteEntry: true with entryIndex — removes the whole entry (if it was the question's last one, its logics key is removed too); (4) defaultJumpTo alone (no entryIndex needed) — "" clears the question's existing default-jump-to fallback, or a question id/"end" sets/changes it. The conditions/skipTo path is refused outright (no force override) if a condition's source question comes after the OWNING question in the survey — jump logic evaluates right after the owning question is answered, so a source can be that question itself or an earlier one, never a later one.

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

Input Schema

NameRequiredDescriptionDefault
skipToNoChanges this entry's jump target — a question id, or "end". Can be combined with conditions in the same call.
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.
positionNo0-based position of the question. Provide this OR questionId.
surveyIdYesThe Survey ID containing the question
conditionsNoReplaces this entry's entire condition list. Can be combined with skipTo in the same call; mutually exclusive with deleteConditionIndex/deleteEntry/defaultJumpTo.
entryIndexNoWhich jump-logic entry to edit — required for every mode except defaultJumpTo. Call get_jump_logic first to see current indices.
questionIdNoThe question this jump logic belongs to. Provide this OR position.
deleteEntryNotrue to remove the whole entry. Mutually exclusive with conditions/skipTo/deleteConditionIndex/defaultJumpTo.
defaultJumpToNoSets (a question id or "end") or clears ("") the question's default-jump-to fallback. No entryIndex needed — mutually exclusive with every entry-based mode above.
deleteConditionIndexNoRemoves one condition from this entry by index. Mutually exclusive with conditions/skipTo/deleteEntry/defaultJumpTo.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructive=true, but the description goes further: it discloses cascade effects (an emptied entry is removed, a removed last entry drops the question's logics key, nothing left dangling), the absence of a force override, and the survey-ordering validation that causes refusal. These are consequences an agent cannot infer from the destructive hint alone.

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-loads the verb and the mode contract, and each sentence carries operational content. It is dense with nested parentheses and quote-wrapped values, which slows parsing slightly, but no sentence is filler.

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 10-parameter destructive mutation with no output schema, the description supplies prerequisites (get_jump_logic for indices), mode selection, combination rules, and the validation constraint that governs acceptance. Nothing needed to invoke it correctly 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 individual parameters are already documented; the description's contribution is cross-parameter mode semantics — exactly-one-of exclusivity, the conditions+skipTo combination, and "" as the clear signal for defaultJumpTo. It adds real orchestration meaning, though much of it echoes the per-parameter mutual-exclusivity notes already in the schema.

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?

Opens with a specific verb+resource ("Edit a question's Jump Logic") and immediately distinguishes itself from the sibling read tool by telling the agent to call get_jump_logic first. The four enumerated modes make it unmistakable that this mutates existing entries rather than adding new ones like add_jump_logic.

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?

States explicitly that EXACTLY ONE mode must be supplied and enumerates each mode with its required companion parameters (entryIndex for entry modes, none for defaultJumpTo). The conditions+skipTo combination is called out as the sole allowed pairing, and the source-ordering refusal rule tells the agent when the call will be rejected.

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