Skip to main content
Glama

get_thankyou_screen_logic

Read-onlyIdempotent

Read a thank-you screen's Display Logic — the builder's own label for it (the "Add Display Logic" button in the thank-you screen's Logic tab), even though under the hood it's the same survey.logics map and add/clone/delete-logic machinery as question-level Jump Logic, just keyed by the screen's id instead of a question's. This is the real SCREEN-SELECTION mechanism when a survey has multiple thank-you screens: goToThankyouSection walks them in order and shows the first one whose entry conditions evaluate true, or the first screen with no logic entries at all (an unconditional catch-all). Identify the screen with screenId (from get_survey_details) or its 0-based position in thankyouScreens[]; omit both to read position 0, the default screen every survey has. Read-only. A screen can have MANY entries (no one-entry limit like question/submit Display Logic). Each entry can also carry an "Assign to text variable" — a real, functional side-effect (unlike skipTo, which technically exists on the underlying object but is never read for a screen and isn't exposed here at all). When describing this to the end user, describe conditions in plain English — never quote raw field names like qid/conidition/entryIndex verbatim. Before stating whether a screen currently HAS 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_thankyou_screen_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 thankyouScreens[]. Provide this OR screenId. Omit both for position 0.
screenIdNoThe thank-you screen's id, as seen in get_survey_details's output
surveyIdYesThe Survey ID containing the thank-you screen

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/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 safety is covered structurally; the description still adds real value beyond them by disclosing that screens have no one-entry limit (unlike question/submit Display Logic), that entries may carry an 'Assign to text variable' side-effect, and that `skipTo` exists on the object but is never read for screens and is not exposed. However, it says nothing about the shape of the returned data, error behavior for a bad screenId/position, or whether position and screenId conflicting is resolved.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the body is dense and meandering: the opening parenthetical about the builder's own label, the 'under the hood' aside, and the `skipTo` tangent all cost reading effort. Most sentences do carry information, but several ideas (renaming context, backend equivalence) could be compressed without losing guidance value.

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?

For a read-only tool with no output schema and fully documented parameters, the definition supplies the operational context an agent needs: how screens are selected, that multiple logic entries are normal, and the side-effect that can occur. The one gap is return-value structure — it never indicates what an individual logic entry or condition looks like, which matters given it explicitly forbids quoting raw field names to the user.

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%, so all four parameters are already documented, including the screenId-or-position choice and the position-0 default. The description largely restates the schema's guidance (screenId from get_survey_details, 0-based position in thankyouScreens[], omit both for position 0) and adds only the nuance that position 0 is the default screen every survey has — so the baseline of 3 applies.

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 and resource ('Read a thank-you screen's Display Logic') and immediately disambiguates it from the question-level Jump Logic tool by explaining it is the same underlying `survey.logics` map keyed by screen id rather than question id. It also explains the builder-label naming so an agent can map user language ('Add Display Logic' button) to this tool.

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 the exact scenario that selects this tool (multi-thank-you-screen surveys where screen selection is driven by entry conditions) and the catch-all fallback behavior. It also gives an explicit pre-condition — re-call this tool before asserting anything about a screen's logic rather than relying on conversation memory — and tells the agent how to phrase results for end users in plain English.

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