delete_group
Remove a question group from a LimeSurvey survey by specifying the survey ID and group ID to manage survey structure.
Instructions
Delete a group from a LimeSurvey survey.
Args:
sid: The survey ID.
gid: The group ID.
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>",
"gid": "<gid>"
},
"name": "delete_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sid | Yes | ||
| gid | Yes |
Implementation Reference
- main.py:449-459 (handler)The main handler function for the 'delete_group' tool. It is decorated with @mcp.tool() which registers it in FastMCP with the name 'delete_group' based on the function name. The function deletes a question group from a survey by calling the underlying LimeSurvey client's delete_group method.
@mcp.tool() def delete_group(sid: int, gid: int) -> bool: """Delete a group from a LimeSurvey survey. Args: sid: The survey ID. gid: The group ID. """ with get_client() as client: return client.delete_group(sid, gid)