Skip to main content
Glama

get_display_logic

Read-onlyIdempotent

Read a question's (or the submit screen's) Display Logic — the "Display the question only, If..." / "Display the submit button only, If..." conditions in the builder's Logic tab that decide whether it's shown at all, based on an earlier answer. Identify the question with questionId (from get_survey_details) or its 0-based position, OR pass submitScreen: true to read the submit button's own Display Logic instead (displayLogics[survey.submit.id] — same map, same shape, just a different target; exactly one of questionId/position/submitScreen). Read-only. This is NOT Jump/Skip Logic (that's get_jump_logic — a routing decision, never a visibility one) — the only outcome in this data is shown-or-hidden. Question/submit-level Display Logic ONLY — does NOT cover Answer Logic (per-option/per-matrix-row-or-column display rules, a separate builder feature keyed by option/row/column id instead — that's get_answer_logic) or thank-you-screen display logic (a different, unrelated mechanism — that's get_thankyou_screen_logic). Returns an empty result cleanly if there's none. When describing this to the end user, describe conditions in plain English ("if Q2's answer is X") — never quote raw field names like qid/conidition/entryIndex verbatim. Before stating whether a question/the submit screen currently HAS display 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_display_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
submitScreenNotrue to read the submit screen's Display Logic instead of a question's. Mutually exclusive with questionId/position.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the description's "Read-only" is redundant. Beyond that it does add real behavior: it returns an empty result cleanly when no logic exists, it maps submitScreen to the displayLogics[survey.submit.id] key, and it warns against asserting state from memory. It does not describe the returned structure beyond the key name, but that is a modest gap for a read tool with full annotation coverage.

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?

The core purpose and the plain-English definition are front-loaded before the exclusions, which is the right ordering. The single dense paragraph mixes in presentation instructions (describe conditions in plain English, never quote raw field names) and a re-read policy, and repeats the "same map, same shape" idea parenthetically — useful content, but the text is longer and less scannable than it needs to be.

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?

No output schema exists, yet the description tells the agent where the data lives (displayLogics keyed by question or submit id), what an empty result looks like, and which adjacent features are out of scope. For a read tool with full annotations and full schema coverage, nothing an agent needs in order to call it correctly is missing.

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 all five parameters, including the mutual exclusivity of submitScreen. The description adds modest meaning: questionId is sourced from get_survey_details, position is 0-based, and submitScreen targets the same map under a different key. That is useful but largely restates the schema, so the baseline of 3 holds rather than rising higher.

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 ("Read a question's ... Display Logic") and immediately grounds it in what the resource means ("conditions ... that decide whether it's shown at all, based on an earlier answer"). It explicitly distinguishes itself from three similarly-named siblings (get_jump_logic, get_answer_logic, get_thankyou_screen_logic), so an agent can route correctly without reading other schemas.

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 names the alternatives and the condition that selects them: Jump/Skip Logic is a routing decision, Answer Logic is per-option/per-row, thank-you-screen logic is a separate mechanism. It also states the positive selection rule ("exactly one of questionId/position/submitScreen") and prescribes a re-read-before-asserting discipline, which is genuine when-to-use guidance.

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