list_alerts
Retrieve and manage configured alert settings including thresholds and notification parameters in the Beszel monitoring system.
Instructions
List all configured alerts in Beszel.
Args: page: Page number (default: 1) per_page: Number of results per page (default: 50) filter: PocketBase filter string sort: Sort order
Returns: Dictionary containing alert configurations including thresholds and notification settings
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| per_page | No | ||
| filter | No | ||
| sort | No |
Implementation Reference
- src/beszel_mcp/server.py:99-126 (handler)The handler function for the 'list_alerts' MCP tool. It is decorated with @mcp.tool() for automatic registration. Retrieves paginated list of alerts from the 'alerts' PocketBase collection using the shared PocketBaseClient instance.@mcp.tool() async def list_alerts( page: int = 1, per_page: int = 50, filter: Optional[str] = None, sort: Optional[str] = None, ) -> dict: """List all configured alerts in Beszel. Args: page: Page number (default: 1) per_page: Number of results per page (default: 50) filter: PocketBase filter string sort: Sort order Returns: Dictionary containing alert configurations including thresholds and notification settings """ client = get_client() await ensure_authenticated(client) return await client.get_list( collection="alerts", page=page, per_page=per_page, filter=filter, sort=sort, )