Skip to main content
Glama

get_survey_details

Idempotent

Retrieve the full survey JSON (questions, options, welcome/thank-you screens) for a survey previously created with create_survey. If the survey has no encryption keys yet (e.g. it was created before its team's key was escrowed), this also attempts to generate and attach them automatically, the same way opening a keyless survey in the real BlockSurvey builder does - silent and best-effort, never a reason this call fails. The raw displayLogics map is shared by THREE separate builder features, distinguishable only by what its key is: an entry keyed by a question's own id is that question's Display Logic; an entry keyed by survey.submit.id is the submit button's Display Logic; an entry keyed by an OPTION's (or matrix row's/column's) id is Answer Logic — a distinct, per-choice feature, never call it "Display Logic (option-level)" or similar. Likewise logics is shared between question-level Jump Logic and thank-you-screen logic, keyed by question id vs. screen id respectively. To VERIFY whether a specific piece of display/answer/jump/thank-you-screen logic was actually added, changed, or removed — e.g. confirming a prior add/update/delete call took effect — call the matching get_display_logic/get_answer_logic/get_jump_logic/get_thankyou_screen_logic tool for that exact target instead of re-pulling this whole survey and inspecting displayLogics/logics yourself; those tools already resolve and correctly label everything this map conflates, so re-deriving it by hand is exactly how "Answer Logic" gets miscalled "Display Logic" or a target gets misidentified. If you do end up looking at displayLogics/logics here for some other reason, never describe them to the user as "the displayLogics map," "keyed by X," or similar — that's internal storage detail, not something to explain. When summarizing this for the user, focus on what they asked about — don't volunteer every field present. This is internal builder-JSON, not end-user language: NEVER quote a raw field/property name to the user (e.g. preventDuplicateSubmission, preventDuplicateSubmissionByAnswer, hideAssignVariable, conidition — that last one is the real app's own typo, not yours to explain) — translate every fact into plain English instead ("this question is used to detect duplicate submissions", not "it has preventDuplicateSubmission: true set on it"). And never speculate about what a field probably does or how it's probably implemented (e.g. "likely alongside device/session-based detection") — state only what you can actually confirm from the data, and say plainly that you're not sure rather than inventing a plausible-sounding mechanism.

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_survey_details"
  }
}

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.
surveyIdYesThe Survey ID returned by create_survey

Output Schema

NameRequiredDescriptionDefault
surveyYesThe raw survey object: questions, options, welcome/thank-you screens, and other builder-managed fields

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Adds a genuine side effect beyond the annotations: if the survey lacks encryption keys, this call silently generates and attaches them best-effort and never fails as a result. That reconciles with readOnlyHint=false and idempotentHint=true and tells the agent something the annotations cannot. It further discloses that displayLogics is shared across three distinct features and logics across jump vs. thank-you-screen logic, which is real behavioral context for reading the result.

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

Conciseness2/5

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

The first sentence is well front-loaded, but the bulk is presentation coaching (never say "displayLogics map," never quote raw field names, never speculate) that is largely out of scope for a tool definition and pushes the actual calling contract into a wall of prose. Several prohibitions restate the same idea and could collapse into one line.

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?

Given an output schema exists, the description needn't explain return values, and it still covers the non-obvious structure of displayLogics/logics and the key-escrow side effect. The remaining bulk is user-facing style guidance rather than completeness, so it is thorough but not efficiently so.

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%, and the schema already documents both surveyId and teamId including the omission fallback. The description adds no extra parameter semantics beyond that, so the baseline 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?

States a specific verb and resource ("Retrieve the full survey JSON") and enumerates what is included (questions, options, welcome/thank-you screens), tying it to create_survey. It also draws a clear line against the get_*_logic siblings, so an agent can pick it apart from them without opening 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 selecting them: to verify a specific display/answer/jump/thank-you-screen logic change, call get_display_logic/get_answer_logic/get_jump_logic/get_thankyou_screen_logic instead of re-pulling this survey. It also gives a negative condition ("if you do end up looking at displayLogics/logics here for some other reason").

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