Skip to main content
Glama

Survey Publish

survey_publish
Destructive

Publish a survey so its participant link takes responses. Publish only when the user has asked to. Returns the stored status, surveyVersion and shareUrl (also as respondentLink): give the user shareUrl as a clickable absolute link to send to participants; editorUrl is the owner's editor. The status is read back after publishing, so no survey_get is needed to confirm it. A survey with a voice interview also returns voiceInterviewCost: the estimated credits and dollars for one response at the interview's full length and the owner's rate, who pays (paidBy), and, when the connected account owns the survey and pays for it, its balance, about how many responses that covers (within any AI budget cap) and buyCreditsUrl. Tell the user these numbers as estimates; they are not a promise that that many people will finish.

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

Input Schema

NameRequiredDescriptionDefault
surveyIdYesThe survey ID to publish (from survey_list)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag readOnlyHint=false and destructiveHint=true, and the description goes well beyond them: it names the exact fields returned, explains that status is read back so no confirmation call is needed, and details ownership/payment semantics (paidBy, balance, AI budget cap, buyCreditsUrl). It also instructs the agent to present voiceInterviewCost figures as estimates rather than promises, which is material context the annotations cannot convey.

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 the publish-only condition are front-loaded, and the return-value guidance on shareUrl vs editorUrl is actionable. The voice-interview sentence is long and comma-heavy, and some return-field description overlaps with the existing output schema, so it is not maximally tight.

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 destructive, open-world mutation the description covers the trigger condition, the effect of publishing, what is returned, and how to frame conditional cost estimates to the user. Even though an output schema exists, the added presentation guidance makes the definition fully sufficient for correct invocation.

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 surveyId as coming from survey_list, so the description adds no new meaning to the parameter. The baseline of 3 is appropriate when the single parameter is fully specified structurally.

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 first sentence gives a specific verb and resource plus the concrete effect: 'Publish a survey so its participant link takes responses.' An agent can immediately distinguish this from survey_get, survey_update_title, or survey_create without consulting another 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?

It states an explicit gating condition ('Publish only when the user has asked to') and actively rules out an alternative path by noting the status is read back after publishing, so no survey_get is needed to confirm it. That is both a when-to-use and a when-not-to-use instruction.

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