Skip to main content
Glama
limesurvey-mcp-server

limesurvey-mcp-server

by pmanciniq

import_survey

Import a survey from .lss, .csv, .txt, or .lsa files into LimeSurvey. Pass a file path or base64 content, with optional new survey ID and name.

Instructions

Import a survey from a .lss/.csv/.txt/.lsa file. Returns the new survey ID. Pass file_path with the local path to the .lss (recommended) OR sImportData in base64.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "import_survey"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathNoLocal path to a file. If given, the server reads it and base64-encodes it automatically (alternative to passing the content directly).
sImportDataNoFile content in BASE64. Not needed if using `file_path`.
DestSurveyIDNoOptional. Desired ID (if in use, another is assigned).
sNewSurveyNameNoOptional. New name for the imported survey.
sImportDataTypeNoType: 'lss', 'csv', 'txt', or 'lsa'. Inferred from the extension if using `file_path`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already indicate non-readonly and non-destructive behavior. The description adds the return value (new survey ID) and the file/ base64 handling, enhancing transparency without contradicting annotations.

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?

The description is two concise sentences, front-loaded with purpose, and contains no extraneous information.

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 tool with 5 parameters and no output schema, the description covers purpose, return, and parameter hints adequately. Minor gap: no mention of error conditions, but schema provides sufficient detail.

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?

Although schema coverage is 100%, the description adds valuable guidance: file_path is recommended, server auto-encodes, and sImportDataType is inferred from extension. This clarifies the relationship between parameters.

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 clearly states 'Import a survey from a .lss/.csv/.txt/.lsa file' with a specific verb and resource, and distinguishes it from sibling tools like copy_survey or add_survey by emphasizing file import.

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?

It explains the two parameter alternatives (file_path recommended vs sImportData) and implies usage context, but lacks explicit comparisons to siblings or when-not-to-use scenarios.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.