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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sid": "<sid>",
"group_data": "<group_data>"
},
"name": "add_group"
}
}Input 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)