Skip to main content
Glama

import_survey

Transfer and integrate LimeSurvey surveys into a system by uploading a base64-encoded survey file and assigning a name for organized management.

Instructions

Import a LimeSurvey survey.

Args: survey_file: The survey file content (base64 encoded). survey_name: The name for the imported survey.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
survey_fileYes
survey_nameNo

Implementation Reference

  • main.py:413-422 (handler)
    The main handler function for the MCP tool 'import_survey'. It is registered via the @mcp.tool() decorator. The function takes a base64-encoded survey file and optional name, uses a context-managed client to import the survey via client.import_survey, and returns the new survey ID.
    @mcp.tool() def import_survey(survey_file: str, survey_name: str = None) -> int: """Import a LimeSurvey survey. Args: survey_file: The survey file content (base64 encoded). survey_name: The name for the imported survey. """ with get_client() as client: return client.import_survey(survey_file, survey_name)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/edgarrmondragon/limesurvey-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server