Skip to main content
Glama

update_display_logic

Destructive

Edit one Display Logic entry on a question, or on the submit screen — the "Display the question only, If..." / "Display the submit button only, If..." conditions in the builder's Logic tab. Identify the TARGET with questionId/position, OR pass submitScreen: true for the submit button's Display Logic instead (same map, same rules, different target; exactly one of questionId/position/submitScreen), and the entry with entryIndex (call get_display_logic first to see current entries and their indices — always 0, since either target can only ever have one entry). Provide EXACTLY ONE of: conditions (replaces the entry's whole condition list), deleteConditionIndex (removes one condition — if that empties the entry, the entry is removed too, nothing left dangling), or deleteEntry: true (removes the whole entry; if it was the last entry, its displayLogics key is removed too). The conditions (replace) path is refused outright (no force override, nothing changed) if a condition's source question comes after the target question in the survey — its answer wouldn't exist yet at that point, so the condition can never be satisfied (never applies to a submit target, since submit always comes after every question). Reorder the questions or pick an earlier source first. Question/submit-level Display Logic ONLY — does not cover Answer Logic (that's update_answer_logic) or thank-you-screen display logic (that's update_thankyou_screen_logic).

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_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 position of the target question. Provide this OR questionId OR submitScreen.
surveyIdYesThe Survey ID containing the question
conditionsNoReplaces this entry's entire condition list. Provide this OR deleteConditionIndex OR deleteEntry — exactly one.
entryIndexYesWhich display-logic entry to edit — call get_display_logic first to see current indices.
questionIdNoThe target question's id. Provide this OR position OR submitScreen.
deleteEntryNotrue to remove the whole entry. Provide this OR conditions OR deleteConditionIndex — exactly one.
submitScreenNotrue to target the submit screen's Display Logic instead of a question. Mutually exclusive with questionId/position.
deleteConditionIndexNoRemoves one condition from this entry by index. Provide this OR conditions OR deleteEntry — exactly one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the mutation risk is signposted structurally. The description still adds real value beyond that: it explains that emptying an entry via deleteConditionIndex removes the entry, that deleteEntry also drops the displayLogics key, and that the replace path is refused with nothing changed when a source question follows the target. It does not cover permissions or the response shape, so it is strong but not exhaustive.

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-loaded with the action and target, then the exactly-one-of rules, then the failure mode, then scope exclusions — a sensible order. It is dense and long, and some of the mutual-exclusivity phrasing duplicates what the schema already states, 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 9-parameter destructive mutation with no output schema, the description covers target selection, operation selection, side effects of deletion, and the one hard failure mode with its remedy (reorder questions or pick an earlier source). Nothing an agent needs 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 the baseline is 3, and the description earns above that by adding semantics the schema does not: entryIndex is always 0 because each target holds at most one entry, and the conditions path is rejected when a source question sits after the target question. It also clarifies that the ordering restriction never applies to a submit target.

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 one Display Logic entry on a question, or on the submit screen") and pins down the exact builder concept it maps to. It explicitly excludes Answer Logic and thank-you-screen display logic, naming the sibling tools that own those, so an agent can route correctly 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 Guidelines5/5

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

Gives explicit preconditions (call get_display_logic first to see entries and indices), an explicit target-selection rule (exactly one of questionId/position/submitScreen), and an explicit exactly-one-of rule across conditions/deleteConditionIndex/deleteEntry. It also names the alternatives for adjacent capabilities (update_answer_logic, update_thankyou_screen_logic).

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