add_group
Create a new group in a LimeSurvey survey to organize questions and structure your questionnaire effectively.
Instructions
Add a group to a LimeSurvey survey.
Args:
sid: The survey ID.
group_data: The group data.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sid | Yes | ||
| group_data | Yes |
Implementation Reference
- main.py:437-447 (handler)The MCP tool handler for 'add_group'. This function is decorated with @mcp.tool(), defining the tool's implementation as a wrapper around the LimeSurvey client's add_group method. The type hints and docstring provide the input schema.@mcp.tool() def add_group(sid: int, group_data: dict[str, Any]) -> int: """Add a group to a LimeSurvey survey. Args: sid: The survey ID. group_data: The group data. """ with get_client() as client: return client.add_group(sid, group_data)