Skip to main content
Glama

get_auth_status

Check WhatsApp Web login status by opening the browser interface when required. This tool verifies authentication completion for the WhatsApp MCP Server.

Instructions

Open WhatsApp Web if needed and report whether login is complete.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler implementation for get_auth_status which checks the authentication state of the WhatsApp client.
    async def get_auth_status(self) -> dict[str, Any]:
        await self.ensure_started()
        assert self._page is not None
    
        state = await self._detect_state()
    
        return {
            "state": state,
            "base_url": self.settings.base_url,
            "page_url": self._page.url,
            "page_title": await self._page.title(),
  • Registration of the get_auth_status tool within the MCP server definition.
    "get_auth_status": ToolDefinition(
        name="get_auth_status",
        description="Open WhatsApp Web if needed and report whether login is complete.",
        input_schema={"type": "object", "properties": {}, "additionalProperties": False},
        handler=lambda _: self.client.get_auth_status(),
    ),

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/ekaksher/whatsapp-mcp'

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