Skip to main content
Glama

server_info

Retrieve information about the db-mcp server and its registered database adapters to understand available database connections and configurations.

Instructions

Get information about the db-mcp server and registered adapters

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function for the 'server_info' tool. It iterates over registered database adapters, collects their info, and returns a JSON string containing server name, version, transport type, list of adapters, and tool filter summary.
    () => { const adapterInfo = []; for (const [id, adapter] of this.adapters) { adapterInfo.push({ id, ...adapter.getInfo() }); } return { content: [{ type: 'text' as const, text: JSON.stringify({ name: this.config.name, version: this.config.version, transport: this.config.transport, adapters: adapterInfo, toolFilter: { raw: this.toolFilter.raw, enabledCount: this.toolFilter.enabledTools.size } }, null, 2) }] }; } );
  • Registration of the 'server_info' tool on the MCP server using the deprecated server.tool method. Includes name, description, empty input schema, and inline handler function.
    this.server.tool( 'server_info', 'Get information about the db-mcp server and registered adapters', {}, () => { const adapterInfo = []; for (const [id, adapter] of this.adapters) { adapterInfo.push({ id, ...adapter.getInfo() }); } return { content: [{ type: 'text' as const, text: JSON.stringify({ name: this.config.name, version: this.config.version, transport: this.config.transport, adapters: adapterInfo, toolFilter: { raw: this.toolFilter.raw, enabledCount: this.toolFilter.enabledTools.size } }, null, 2) }] }; } );

Other Tools

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/neverinfamous/db-mcp'

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