delete_survey
Remove a LimeSurvey survey by specifying its survey ID to manage survey data and maintain organized survey lists.
Instructions
Delete a LimeSurvey survey.
Args:
sid: The survey 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>"
},
"name": "delete_survey"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sid | Yes |
Implementation Reference
- main.py:391-399 (handler)The handler function for the 'delete_survey' tool. It is registered via the @mcp.tool() decorator and implements the logic to delete a survey by ID using the LimeSurvey client.
@mcp.tool() def delete_survey(sid: int) -> bool: """Delete a LimeSurvey survey. Args: sid: The survey ID. """ with get_client() as client: return client.delete_survey(sid)