Skip to main content
Glama

get-server-info

Retrieve details about the MCP Firebird server and its available tools to understand database access capabilities.

Instructions

Obtiene información sobre el servidor MCP Firebird y las herramientas disponibles

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The asynchronous handler function that executes the 'get-server-info' tool. It retrieves package information from package.json, lists available database tools, collects runtime statistics, and returns formatted server information or an error response.
    handler: async () => {
        try {
            const serverInfo = {
                name: pkg.name || 'MCP Firebird Server',
                version: pkg.version || '2.6.0-alpha.11',
                description: pkg.description || 'Servidor MCP para bases de datos Firebird',
                capabilities: {
                    tools: Array.from(databaseTools.keys()),
                    totalTools: databaseTools.size,
                    features: [
                        'SQL query execution',
                        'Database schema inspection',
                        'Performance analysis',
                        'Backup and restore',
                        'Database validation'
                    ]
                },
                runtime: {
                    nodeVersion: process.version,
                    platform: process.platform,
                    uptime: process.uptime(),
                    memoryUsage: process.memoryUsage()
                }
            };
    
            return {
                content: [{
                    type: 'text',
                    text: `Información del servidor MCP Firebird:\n\n${formatForClaude(serverInfo)}`
                }]
            };
        } catch (error) {
            logger.error('Error getting server info:', { error });
            return {
                content: [{
                    type: 'text',
                    text: `Error obteniendo información del servidor: ${error instanceof Error ? error.message : String(error)}`
                }],
                isError: true
            };
        }
    }
  • The input schema for the 'get-server-info' tool, defined as an empty Zod object schema indicating no input parameters are required.
    inputSchema: z.object({}),
  • The registration of the 'get-server-info' tool in the setupMetadataTools function, including title, description, schema, and inline handler.
    tools.set('get-server-info', {
        title: 'Get Server Information',
        description: 'Obtiene información sobre el servidor MCP Firebird y las herramientas disponibles',
        inputSchema: z.object({}),
        handler: async () => {
            try {
                const serverInfo = {
                    name: pkg.name || 'MCP Firebird Server',
                    version: pkg.version || '2.6.0-alpha.11',
                    description: pkg.description || 'Servidor MCP para bases de datos Firebird',
                    capabilities: {
                        tools: Array.from(databaseTools.keys()),
                        totalTools: databaseTools.size,
                        features: [
                            'SQL query execution',
                            'Database schema inspection',
                            'Performance analysis',
                            'Backup and restore',
                            'Database validation'
                        ]
                    },
                    runtime: {
                        nodeVersion: process.version,
                        platform: process.platform,
                        uptime: process.uptime(),
                        memoryUsage: process.memoryUsage()
                    }
                };
    
                return {
                    content: [{
                        type: 'text',
                        text: `Información del servidor MCP Firebird:\n\n${formatForClaude(serverInfo)}`
                    }]
                };
            } catch (error) {
                logger.error('Error getting server info:', { error });
                return {
                    content: [{
                        type: 'text',
                        text: `Error obteniendo información del servidor: ${error instanceof Error ? error.message : String(error)}`
                    }],
                    isError: true
                };
            }
        }
    });

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