Skip to main content
Glama

delete_participants

Remove specific participants from a LimeSurvey survey by providing the survey ID and participant tokens. Simplifies participant management in survey administration.

Instructions

Delete participants from a LimeSurvey survey.

Args: sid: The survey ID. tokens: The participant tokens.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sidYes
tokensYes

Implementation Reference

  • main.py:572-582 (handler)
    The primary handler function for the 'delete_participants' MCP tool. It is decorated with @mcp.tool(), which handles registration and schema inference from type hints and docstring. The function creates a LimeSurvey client and calls its delete_participants method.
    @mcp.tool() def delete_participants(sid: int, tokens: list[str]) -> bool: """Delete participants from a LimeSurvey survey. Args: sid: The survey ID. tokens: The participant tokens. """ with get_client() as client: return client.delete_participants(sid, tokens)
  • main.py:15-20 (helper)
    Helper function used by the tool handler to create a Citric LimeSurvey Client instance from environment variables.
    def get_client() -> Client: return Client( url=os.getenv("LIMESURVEY_URL"), username=os.getenv("LIMESURVEY_USERNAME"), password=os.getenv("LIMESURVEY_PASSWORD"), )

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