Skip to main content
Glama
Red5d

Beszel MCP Server

by Red5d

list_alerts

Retrieve and manage configured alert configurations including thresholds and notification settings from 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
NameRequiredDescriptionDefault
pageNo
per_pageNo
filterNo
sortNo

Implementation Reference

  • The handler function for the 'list_alerts' MCP tool. It is registered via the @mcp.tool() decorator. The function retrieves paginated list of alerts from the 'alerts' collection in Beszel using the PocketBase client, with optional filtering and sorting.
    @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,
        )

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/Red5d/beszel-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server