Skip to main content
Glama

import_question

Add questions to LimeSurvey surveys by importing question files into specific survey groups.

Instructions

Import a question to a LimeSurvey survey.

Args: sid: The survey ID. gid: The group ID. question_file: The question file content (base64 encoded).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sidYes
gidYes
question_fileYes

Implementation Reference

  • main.py:509-520 (handler)
    The handler function for the 'import_question' MCP tool. It is decorated with @mcp.tool(), defining the tool schema via type hints and docstring, and implements the logic by calling the LimeSurvey client's import_question method.
    @mcp.tool() def import_question(sid: int, gid: int, question_file: str) -> int: """Import a question to a LimeSurvey survey. Args: sid: The survey ID. gid: The group ID. question_file: The question file content (base64 encoded). """ with get_client() as client: return client.import_question(sid, gid, question_file)

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