save_responses
Store survey response data in LimeSurvey using the survey ID and provided input. Facilitates efficient management of survey submissions via MCP client integration.
Instructions
Save responses for a LimeSurvey survey.
Args:
sid: The survey ID.
data: The response data to save.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| sid | Yes |
Implementation Reference
- main.py:304-313 (handler)The handler function for the 'save_responses' tool. It is decorated with @mcp.tool() for registration and executes by calling the LimeSurvey client's save_responses method.@mcp.tool() def save_responses(sid: int, data: dict[str, Any]) -> bool: """Save responses for a LimeSurvey survey. Args: sid: The survey ID. data: The response data to save. """ with get_client() as client: return client.save_responses(sid, data)
- main.py:304-304 (registration)The @mcp.tool() decorator registers the save_responses function as an MCP tool.@mcp.tool()