Skip to main content
Glama

survey-create

Create an on-site survey as a draft with its questions. Visitors see nothing until it is published with survey-update-status.

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": {
      "name": "<name>",
      "questions": "<questions>"
    },
    "name": "survey-create"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesSurvey name (max 120 chars)
displayNoHow it shows: position (bottom_right, bottom_left, top_right, top_left, center, center_left, center_right, top_bar), progress (bar, counter, none), delaySeconds, showOnce, recontactDays, maxImpressionsPerContact
questionsYesUp to 20 questions, asked in this order
targetingNoWho and where (default: everyone, on every page, right away): urlPatterns (pages to show on, * wildcards), excludeUrlPatterns, audience (all, identified, anonymous), segments (segment IDs), devices, triggers ([{ type: immediate | time_on_page | scroll_depth | exit_intent | signal, value }])

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare the write/read profile (readOnlyHint false, openWorldHint false, destructiveHint false), so the description's job is to add context — and it does, by disclosing that creation is non-public and requires a separate publish step. It omits permissions and what the response returns, keeping it below a 5.

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

Conciseness5/5

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

A single sentence with zero filler, front-loading the create action and the draft state before the publishing caveat. Nothing is repeated from the schema.

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?

For a nested, multi-object create tool the description covers purpose and lifecycle adequately, and the schema carries all parameter detail with no output schema expectation. The only real gap is that it never says the response yields the survey identifier needed to call survey-update-status.

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%, with nested question types, targeting defaults, and limits all documented inline. The description adds no meaning beyond the schema for any of the four top-level parameters, 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 ("Create an on-site survey") plus the resulting state ("as a draft with its questions"). The draft state and named publishing sibling make it unmistakable versus survey-update-status, survey-list, or survey-results.

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?

Explicitly says visitors see nothing until it is published with survey-update-status, which routes the agent to the correct follow-up tool. It stops short of stating when not to use it (e.g., editing an existing survey) or any prerequisites such as permissions.

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