Skip to main content
Glama

Template Create Survey From

template_create_survey_from

Create a new draft survey from a template (templateId from template_lookup or template_list). Returns { kind: 'survey', survey } with the new survey.id, or { kind: 'concept_test', conceptTestId } for a concept-test template, or { kind: 'diary_study', studyId, studyUrl } for a diary-study template: a study with a copy of each day's survey, whose days start once the user sets a start date at studyUrl. A survey result has no links: call survey_get with survey.id for editorUrl and shareUrl, and give the user the editor link as a clickable absolute link; for a diary study give the user studyUrl the same way. Not idempotent: each call creates another survey or study.

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": {
      "templateId": "<templateId>"
    },
    "name": "template_create_survey_from"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage code for the survey, such as 'es' or 'pt-BR'. The copy is made in this one language when the template is translated into it, otherwise in English. Omit for English. More languages can be added in the editor.
templateIdYesTemplate ID (from template_lookup or template_list)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / lang
      Added value: +{
      +  "description": "Language code for the survey, such as 'es' or 'pt-BR'. The copy is made in this one language when the template is translated into it, otherwise in English. Omit for English. More languages can be added in the editor.",
      +  "maxLength": 16,
      +  "minLength": 2,
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=false and idempotentHint=false, and the description reinforces the non-idempotency with the consequence ("each call creates another survey or study"). Beyond that it discloses the three distinct return shapes, that a survey result carries no links so a follow-up survey_get is required, and that a diary study's days only begin once the user sets a start date at studyUrl — none of which is derivable from the annotations or schema.

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?

Front-loaded with the action and scoped by colons into prerequisite, return-variant, and post-call guidance. It is a dense run-on with nested clauses, but every sentence carries operational information with no 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?

An output schema exists, yet the description still flags the conditional variant shapes and the missing-links behavior an agent must handle, plus the diary-study start-date dependency. For a non-idempotent creation tool with polymorphic results, nothing needed to call and follow up correctly is missing.

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% and the lang parameter already documents the language-copy fallback to English in detail. The description only adds that templateId comes from template_lookup or template_list, which is marginal beyond the schema, 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 a new draft survey from a template") and immediately identifies the prerequisite source for templateId (template_lookup or template_list). The three result variants (survey, concept_test, diary_study) make clear this is the template-instantiation path, not a general survey creator.

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 where templateId comes from and tells the agent what to do after creation (call survey_get with survey.id for links; use studyUrl for diary studies). It does not contrast with from-scratch creation siblings like survey_create, so the when-not case must be inferred from the name of this tool.

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