delete_question
Remove a specific question from a LimeSurvey survey by providing the question ID using the MCP client integration.
Instructions
Delete a question from a LimeSurvey survey.
Args:
qid: The question ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qid | Yes |
Implementation Reference
- main.py:486-495 (handler)The main handler function for the 'delete_question' tool. It is decorated with @mcp.tool() which serves as registration. The function takes a question ID (qid) and uses a client to delete the question, returning a boolean.@mcp.tool() def delete_question(qid: int) -> bool: """Delete a question from a LimeSurvey survey. Args: qid: The question ID. """ with get_client() as client: return client.delete_question(qid)
- main.py:486-486 (registration)The @mcp.tool() decorator registers the delete_question function as an MCP tool.@mcp.tool()
- main.py:487-492 (schema)The function signature and docstring define the input schema (qid: int) and output (bool), used by MCP for tool schema.def delete_question(qid: int) -> bool: """Delete a question from a LimeSurvey survey. Args: qid: The question ID. """