Skip to main content
Glama

get_health

Check the operational status of the Browserless instance to verify connectivity and service availability for browser automation tasks.

Instructions

Get health status of Browserless instance

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Main handler logic for the 'get_health' tool that invokes client.getHealth() and formats the response as MCP content.
    case 'get_health': { const result = await this.client!.getHealth(); if (result.success && result.data) { return { content: [ { type: 'text', text: `Health status: ${result.data.status}`, }, { type: 'text', text: JSON.stringify(result.data, null, 2), }, ], }; } else { throw new Error(result.error || 'Failed to get health status'); } }
  • src/index.ts:243-250 (registration)
    Tool registration in ListToolsRequestSchema handler, defining name, description, and input schema (empty).
    { name: 'get_health', description: 'Get health status of Browserless instance', inputSchema: { type: 'object', properties: {}, }, },
  • Implementation of getHealth method in BrowserlessClient that performs the actual HTTP GET request to the Browserless /health endpoint.
    async getHealth(): Promise<BrowserlessResponse<HealthResponse>> { try { const response: AxiosResponse<HealthResponse> = await this.httpClient.get('/health'); return { success: true, data: response.data, }; } catch (error) { return this.handleError(error); } }
  • TypeScript interface defining the structure of the HealthResponse returned by the /health endpoint.
    export interface HealthResponse { status: 'healthy' | 'unhealthy'; uptime: number; memory: { used: number; total: number; percentage: number; }; cpu: { usage: number; percentage: number; }; sessions: { active: number; total: number; }; }

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/Lizzard-Solutions/browserless-mcp'

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