add_responses
Bulk-add multiple survey responses to a LimeSurvey survey using the survey ID and response data for efficient data management.
Instructions
Add multiple responses to a LimeSurvey survey.
Args:
sid: The survey ID.
responses: The responses to add.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| responses | Yes | ||
| sid | Yes |
Implementation Reference
- main.py:267-276 (handler)The core handler function for the 'add_responses' MCP tool. It is decorated with @mcp.tool() for automatic registration and executes the logic by delegating to the LimeSurvey client's add_responses method using a context-managed client instance.@mcp.tool() def add_responses(sid: int, responses: list[dict]) -> str: """Add multiple responses to a LimeSurvey survey. Args: sid: The survey ID. responses: The responses to add. """ with get_client() as client: return client.add_responses(sid, responses)