Skip to main content
Glama

system-health-check

Monitor system health and validate database connectivity for the Firebird SQL server in real-time, ensuring reliable performance and accessibility for LLM-driven data interactions.

Instructions

Verifica el estado de salud del sistema y la conectividad de la base de datos

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The inline asynchronous handler function for the 'system-health-check' tool. It collects system health metrics including status, timestamp, uptime, memory usage, Node.js environment details, and counts of available database and metadata tools. Returns a formatted text response using formatForClaude, or an error response if something fails.
    handler: async () => { try { const healthInfo = { status: 'healthy', timestamp: new Date().toISOString(), uptime: process.uptime(), memory: { used: Math.round(process.memoryUsage().heapUsed / 1024 / 1024), total: Math.round(process.memoryUsage().heapTotal / 1024 / 1024), external: Math.round(process.memoryUsage().external / 1024 / 1024) }, environment: { nodeVersion: process.version, platform: process.platform, arch: process.arch }, tools: { database: databaseTools.size, metadata: tools.size, total: databaseTools.size + tools.size } }; return { content: [{ type: 'text', text: `Estado de salud del sistema:\n\n${formatForClaude(healthInfo)}` }] }; } catch (error) { logger.error('Error in health check:', { error }); return { content: [{ type: 'text', text: `Error en verificación de salud: ${error instanceof Error ? error.message : String(error)}` }], isError: true }; } }
  • Registration of the 'system-health-check' tool within the setupMetadataTools function. Defines the tool's title, description, empty input schema (no parameters required), and references the inline handler.
    tools.set('system-health-check', { title: 'System Health Check', description: 'Verifica el estado de salud del sistema y la conectividad de la base de datos', inputSchema: z.object({}), handler: async () => { try { const healthInfo = { status: 'healthy', timestamp: new Date().toISOString(), uptime: process.uptime(), memory: { used: Math.round(process.memoryUsage().heapUsed / 1024 / 1024), total: Math.round(process.memoryUsage().heapTotal / 1024 / 1024), external: Math.round(process.memoryUsage().external / 1024 / 1024) }, environment: { nodeVersion: process.version, platform: process.platform, arch: process.arch }, tools: { database: databaseTools.size, metadata: tools.size, total: databaseTools.size + tools.size } }; return { content: [{ type: 'text', text: `Estado de salud del sistema:\n\n${formatForClaude(healthInfo)}` }] }; } catch (error) { logger.error('Error in health check:', { error }); return { content: [{ type: 'text', text: `Error en verificación de salud: ${error instanceof Error ? error.message : String(error)}` }], isError: true }; } } });
  • Zod schema for the tool input, which is an empty object since no parameters are required.
    inputSchema: z.object({}),

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/PuroDelphi/mcpFirebird'

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