Skip to main content
Glama

add_response

Submit survey responses to LimeSurvey surveys by providing survey ID and response data for data collection and analysis.

Instructions

Add a response to a LimeSurvey survey.

Args: sid: The survey ID. response: The response to add.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sidYes
responseYes

Implementation Reference

  • main.py:255-264 (handler)
    The primary handler for the 'add_response' MCP tool. It is registered via the @mcp.tool() decorator and executes the tool logic by using a LimeSurvey client to add the response to the specified survey.
    @mcp.tool() def add_response(sid: int, response: dict) -> str: """Add a response to a LimeSurvey survey. Args: sid: The survey ID. response: The response to add. """ with get_client() as client: return client.add_response(sid, response)
  • main.py:15-20 (helper)
    Helper function to create and return a LimeSurvey Client instance, used by the add_response handler.
    def get_client() -> Client: return Client( url=os.getenv("LIMESURVEY_URL"), username=os.getenv("LIMESURVEY_USERNAME"), password=os.getenv("LIMESURVEY_PASSWORD"), )
  • main.py:255-255 (registration)
    The @mcp.tool() decorator registers the add_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