Skip to main content
Glama

get_jump_logic

Read-onlyIdempotent

Read a question's Jump Logic (also called Skip Logic) — the "Then Jump To" rules in the builder's Logic tab that send the respondent to a different question (or end the survey) based on an earlier answer, plus its separate defaultJumpTo fallback (used when no rule matches, or when there are no rules at all). Identify the question with questionId (from get_survey_details) or its 0-based position. Read-only. Questions ONLY — does not cover jump logic on welcome/thank-you screens (a structurally identical map, different target — get_thankyou_screen_logic is the separate tool for that) or the submit screen. The submit screen has its own entry in this same logics map, but for a different feature — a conditional URL redirect after submission (redirectTo, not skipTo) — which no MCP tool currently covers; submit's Display Logic (whether the button shows at all) is separately covered by get_display_logic's submitScreen option. A question can have many jump-logic entries, unlike Display Logic's one-entry limit. When describing this to the end user, describe conditions in plain English ("if Q2's answer is X, skip to Q5") — never quote raw field names like qid/conidition/skipTo/entryIndex verbatim. Before stating whether a question currently HAS jump logic, or what it contains, call this tool fresh and read its result — never assert this from memory of an earlier call in this conversation, including your own earlier edits; the survey may have changed since then, including edits you made yourself.

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": "get_jump_logic"
  }
}

Input Schema

NameRequiredDescriptionDefault
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 index into the survey's questions array. Provide this OR questionId, not required to provide both.
surveyIdYesThe Survey ID containing the question
questionIdNoThe question's id, as seen in get_survey_details's output

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint, so the bare "Read-only" line adds little. Beyond them, the description discloses real structural behavior: many jump-logic entries per question versus Display Logic's one-entry cap, the `defaultJumpTo` fallback when no rule matches or no rules exist, and the fact that this same `logics` map contains a submit-screen `redirectTo` entry that is a different feature. The staleness warning is also genuine behavioral guidance not expressible in annotations.

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?

Purpose and the "Questions ONLY" scope constraint are front-loaded before the edge cases, and the structure moves from what to when-not to how-to-read. The submit-screen `redirectTo` digression and the end-user phrasing instruction are long tail material, but each does prevent a plausible misreading of the `logics` map rather than being pure 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?

There is no output schema, so the description carries the burden of explaining the return shape, and it does: the `logics` map, `skipTo` versus `redirectTo`, `entryIndex`, `qid`/condition fields, and `defaultJumpTo`. Combined with the explicit exclusions and the required `surveyId`, an agent has enough to call this correctly and to interpret the result without guessing.

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 coverage is 100%, so the schema already documents `surveyId`, `questionId`, `position`, and `teamId` with their sources. The description echoes the questionId-from-get_survey_details and 0-based position semantics and notes questionId OR position sufficiency, but this largely restates the schema rather than adding syntax, precedence, or edge-case behavior (e.g., which wins if both are supplied).

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 description opens with a specific verb+resource ("Read a question's Jump Logic"), glosses it as "Skip Logic" / "Then Jump To" rules, and states the effect on respondents plus the separate `defaultJumpTo` fallback. It actively disambiguates from the structurally similar siblings by naming get_thankyou_screen_logic and get_display_logic in the same breath.

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?

It states where to get the identifier (get_survey_details), the two addressing options, and explicit exclusions: welcome/thank-you screens, the submit screen, and submit Display Logic. It even names the tool that covers the excluded thankyou case, and adds a temporal rule (re-read fresh, never assert from memory) that governs when the tool must be called.

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