Skip to main content
Glama

publish_survey

DestructiveIdempotent

Publish a survey so it's live and can start collecting responses, and return its public share link — once published, anyone with that link can open and respond to the survey. Call this when the user asks to publish, launch, go live, or share a survey. Before calling, ask the user which display format they want the survey shown in — one question at a time (default), classic (all questions on one scrollable page), or conversational (chat-style) — unless they've already said or it's obvious they don't care, in which case just use the default. Safe to call on a survey that's already published — it won't re-publish, but passing viewType still updates the display format and share link if changed.

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": "publish_survey"
  }
}

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
viewTypeNoDisplay format for the published survey: "o" = one question at a time (default if omitted), "l" = classic (all questions on one scrollable page), "c" = conversational (chat-style). Determines the -o/-l/-c suffix on the returned share link.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Adds meaningful context beyond annotations: the survey becomes publicly reachable by anyone with the link, and re-calling will not re-publish but will still update viewType and the share link. Those points concretize the openWorldHint and idempotentHint flags. It does not address permissions or any limits, so it earns solid credit rather than full marks.

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 and outcome are front-loaded in the first clause, then usage triggers, then the behavioral caveat. The display-format instruction is wordy with several parenthetical glosses that partly duplicate the enum documentation, but nothing is filler.

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?

With no output schema, the description correctly states what is returned (a public share link with a viewType-dependent suffix) and covers idempotency and public exposure. Only minor gaps remain, such as what happens on failure or whether unpublishing exists.

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 baseline is 3, but the description adds decision guidance the schema cannot: ask the user which display format they want, and fall back to the default when they don't care. It also ties viewType changes to the returned link on repeat calls.

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 plus the two concrete outcomes: the survey goes live and a public share link is returned. It is clearly distinguishable from siblings such as get_survey_link (which only retrieves a link) because it describes publishing as the primary action.

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 explicit trigger phrases ("publish, launch, go live, or share") and a pre-call instruction to ask about display format with a stated default exception. It also tells the agent it is safe to re-call on an already-published survey. The only gap is that it never names an alternative for the "just give me the link" case, which get_survey_link likely covers.

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