Skip to main content
Glama
srthkdev

DBeaver MCP Server

by srthkdev

get_connection_info

Retrieve detailed configuration and properties for a specific DBeaver database connection using its unique ID or name.

Instructions

Get detailed information about a specific DBeaver connection

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
connectionIdYesThe ID or name of the DBeaver connection

Implementation Reference

  • The handler function that executes the get_connection_info tool logic. It sanitizes the connection ID, retrieves the connection details using the config parser, and returns the connection information as JSON.
    private async handleGetConnectionInfo(args: { connectionId: string }) {
      const connectionId = sanitizeConnectionId(args.connectionId);
      const connection = await this.configParser.getConnection(connectionId);
      
      if (!connection) {
        throw new McpError(ErrorCode.InvalidParams, `Connection not found: ${connectionId}`);
      }
      
      return {
        content: [{
          type: 'text' as const,
          text: JSON.stringify(connection, null, 2),
        }],
      };
    }
  • src/index.ts:484-485 (registration)
    The switch case in the CallToolRequestSchema handler that dispatches to the specific get_connection_info handler method.
    case 'get_connection_info':
      return await this.handleGetConnectionInfo(args as { connectionId: string });
  • src/index.ts:207-220 (registration)
    The tool registration in the ListToolsRequestSchema handler, defining the tool name, description, and input schema.
    {
      name: 'get_connection_info',
      description: 'Get detailed information about a specific DBeaver connection',
      inputSchema: {
        type: 'object',
        properties: {
          connectionId: {
            type: 'string',
            description: 'The ID or name of the DBeaver connection',
          },
        },
        required: ['connectionId'],
      },
    },
  • The input schema definition for the get_connection_info tool, specifying the required connectionId parameter.
    inputSchema: {
      type: 'object',
      properties: {
        connectionId: {
          type: 'string',
          description: 'The ID or name of the DBeaver connection',
        },
      },
      required: ['connectionId'],
    },

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/srthkdev/dbeaver-mcp-server'

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