add_survey
Create a new survey in LimeSurvey by providing survey data through the MCP server integration.
Instructions
Add a new LimeSurvey survey.
Args:
survey_data: The survey data.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| survey_data | Yes |
Implementation Reference
- main.py:368-377 (handler)The main handler function for the 'add_survey' MCP tool. It is decorated with @mcp.tool() for registration and executes the logic to add a new survey using the LimeSurvey client by calling client.add_survey with the provided survey_data.@mcp.tool() def add_survey(survey_data: dict[str, Any]) -> int: """Add a new LimeSurvey survey. Args: survey_data: The survey data. """ with get_client() as client: return client.add_survey(**survey_data)