Skip to main content
Glama

get_survey_link

Read-onlyIdempotent

Get the edit (builder) link for a survey, plus its public share link if it's already published. Call this whenever the user asks for the edit link, builder link, or 'the link to my survey' for a survey that already exists (found via list_surveys, or an id you already have from create_survey/publish_survey) — don't reconstruct the URL yourself. If the survey has never been published, only the edit link is returned; publishing state doesn't affect the edit link itself, since edits made after publishing go live immediately at the same share link (there is no separate re-publish step).

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

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 or list_surveys

Output Schema

NameRequiredDescriptionDefault
editUrlYesThe builder/edit link, always present
shareUrlNoThe public share link — only present if isPublished is true
isPublishedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so safety is covered. The description adds real domain behavior beyond them: the share link only comes back if published, the edit link is unaffected by publish state, and edits after publishing go live at the same share link with no re-publish step. Only the exact return shape is left implicit, which the output schema covers.

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?

Purpose is front-loaded in the first clause, followed by usage routing and then conditional return behavior in a logical order. The third sentence is dense, with nested em-dashes and parentheticals, and could be split for faster scanning, 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 two-parameter read tool this is complete: annotations carry the safety profile, the output schema carries the return contract, and the description covers the non-obvious conditional behavior and the no-re-publish domain rule an agent would otherwise get wrong.

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 surveyId and teamId are already documented in the schema, including where the id comes from and team fallback behavior. The description's mention of ids from list_surveys/create_survey/publish_survey largely restates that, and it says nothing about teamId semantics, 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?

The description opens with a specific verb plus resource ('Get the edit (builder) link for a survey') and immediately distinguishes the two possible outputs (edit link vs. public share link). It also disambiguates from siblings by naming create_survey/publish_survey/list_surveys as sources of the survey id rather than as alternatives for this action.

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?

It gives explicit call conditions ('whenever the user asks for the edit link, builder link, or "the link to my survey"') and an explicit prohibition ('don't reconstruct the URL yourself'), plus the precondition that the survey already exists and how to obtain its id. There is little left for the agent to infer about when this tool applies.

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