Skip to main content
Glama

update_thankyou_screen_logic

Destructive

Edit a thank-you screen's Display Logic. Identify the screen with screenId/position (omit both for position 0) and the entry with entryIndex (call get_thankyou_screen_logic first to see current entries and their indices). Provide EXACTLY ONE of: conditions and/or variable/variableValue together with entryIndex (edits that entry in place — conditions and variable can be combined in one call, matching the builder where both are independently editable on the same entry: conditions replaces the entry's whole condition list, variable: "" clears its "Assign to text variable", any other value sets/changes it paired with variableValue — must be a name that ALREADY EXISTS in the survey's variable list (this tool can't create one, and refuses an unrecognized name), and variableValue must be a fixed value, never recall/piping syntax — refused if it looks like {{prefix:id}}, since it would never actually resolve to the respondent's answer); deleteConditionIndex with entryIndex (removes one condition — if that empties the entry, the entry is removed too); or deleteEntry: true with entryIndex (removes the whole entry; if it was the screen's last one, its logics key is removed too).

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>",
      "entryIndex": "<entryIndex>"
    },
    "name": "update_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. Provide this OR position.
surveyIdYesThe Survey ID containing the thank-you screen
variableNo"" clears this entry's variable assignment; any other value sets/changes it (pair with variableValue) — must be the name of a variable that ALREADY EXISTS in the survey's variable list (including the reserved defaults ref/source/medium/result/responseID, or one created via the builder's Settings → Variables) — this tool cannot create a new one, and an unrecognized name is refused. Can be combined with conditions in the same call.
conditionsNoReplaces this entry's entire condition list. Can be combined with variable in the same call; mutually exclusive with deleteConditionIndex/deleteEntry.
entryIndexYesWhich logic entry to edit — call get_thankyou_screen_logic first to see current indices.
deleteEntryNotrue to remove the whole entry. Mutually exclusive with conditions/variable/deleteConditionIndex.
variableValueNoThe FIXED value assigned to `variable` when the entry's conditions match — stored and shown exactly as typed, never resolved for recall. Do NOT put `{{prefix:id}}` recall/piping syntax in here expecting it to capture a respondent's actual answer — it will not work, and is refused outright. Only meaningful together with a non-empty variable.
deleteConditionIndexNoRemoves one condition from this entry by index. Mutually exclusive with conditions/variable/deleteEntry.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well past the annotations, which only declare destructive/non-idempotent. It discloses cascade semantics ('if that empties the entry, the entry is removed too', and the logics key disappearing when the last entry goes), in-place mutation of a single entry, refusal of unrecognized variable names, and refusal of `{{prefix:id}}` recall syntax. That is exactly the behavioral context an agent needs before invoking a destructive tool.

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 first clause is well front-loaded, but the rest is a single sprawling sentence with deeply nested parentheticals and em-dashes that is hard to parse on one read. The information mostly earns its place, but the structure obscures the mode selection that matters most.

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 destructive, 10-parameter mutation with no output schema, the description covers preconditions, mode exclusivity, validation failures and side effects. The only real gap is return behavior after a successful edit, which matters somewhat given there is no output schema.

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 description coverage is 100%, so baseline is 3, and the description earns above that by adding cross-parameter semantics the schema cannot express per-field: 'EXACTLY ONE of' the edit modes, that conditions and variable may be combined, that `variable: ""` clears the assignment, and that variableValue must pair with a non-empty variable. Some of these restate the schema field descriptions nearly verbatim.

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 ('Edit a thank-you screen's Display Logic'), and the edit-in-place scope is contrasted with the read path ('call get_thankyou_screen_logic first') and with add_thankyou_screen_logic implied by the update/add split. An agent can distinguish it from the sibling logic tools 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 Guidelines4/5

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

Gives an explicit precondition (call get_thankyou_screen_logic to learn entry indices) and explicit mutual-exclusion rules between the condition-edit, variable-edit, deleteConditionIndex and deleteEntry modes. It stops short of naming add_thankyou_screen_logic as the alternative for creating entries, so routing guidance is clear but not exhaustive.

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