add_quota
Enhance LimeSurvey surveys by defining and adding quotas using specific survey IDs and quota data, ensuring response limits are managed effectively.
Instructions
Add a quota to a LimeSurvey survey.
Args:
sid: The survey ID.
quota_data: The quota data.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quota_data | Yes | ||
| sid | Yes |
Implementation Reference
- main.py:634-644 (handler)The handler function for the 'add_quota' MCP tool. It uses the LimeSurvey client to add a quota to the specified survey. The @mcp.tool() decorator registers this function as a tool.@mcp.tool() def add_quota(sid: int, quota_data: dict[str, Any]) -> int: """Add a quota to a LimeSurvey survey. Args: sid: The survey ID. quota_data: The quota data. """ with get_client() as client: return client.add_quota(sid, quota_data)