Skip to main content
Glama

update_response

Modify existing survey responses in LimeSurvey by providing survey ID, response ID, and updated data to correct or update participant answers.

Instructions

Update a response in a LimeSurvey survey.

Args: sid: The survey ID. response_id: The response ID. response: The updated response.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sidYes
response_idYes
responseYes

Implementation Reference

  • main.py:279-290 (handler)
    The handler function for the 'update_response' MCP tool. It is decorated with @mcp.tool() for registration and implements the tool logic by delegating to the LimeSurvey Client's update_response method via a context-managed client instance.
    @mcp.tool() def update_response(sid: int, response_id: int, response: dict) -> str: """Update a response in a LimeSurvey survey. Args: sid: The survey ID. response_id: The response ID. response: The updated response. """ with get_client() as client: return client.update_response(sid, response_id, response)
  • main.py:15-21 (helper)
    Helper function to create and return a configured LimeSurvey Client instance, used by the update_response handler and other tools.
    def get_client() -> Client: return Client( url=os.getenv("LIMESURVEY_URL"), username=os.getenv("LIMESURVEY_USERNAME"), password=os.getenv("LIMESURVEY_PASSWORD"), )
  • main.py:279-279 (registration)
    The @mcp.tool() decorator registers the update_response function as an MCP tool.
    @mcp.tool()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/edgarrmondragon/limesurvey-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server