activate_tokens
Enable participation tokens for a LimeSurvey survey by activating them with a specific survey ID. Facilitates survey management and response collection.
Instructions
Activate tokens for a LimeSurvey survey.
Args:
sid: The survey ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sid | Yes |
Implementation Reference
- main.py:623-632 (handler)The handler function for the 'activate_tokens' tool. It is registered via the @mcp.tool() decorator. The function activates tokens for the specified survey ID (sid) by calling the LimeSurvey client's activate_tokens method.@mcp.tool() def activate_tokens(sid: int) -> bool: """Activate tokens for a LimeSurvey survey. Args: sid: The survey ID. """ with get_client() as client: return client.activate_tokens(sid)