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
| Name | Required | Description | Default |
|---|---|---|---|
| connectionId | Yes | The ID or name of the DBeaver connection |
Implementation Reference
- src/index.ts:608-622 (handler)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'], }, },
- src/index.ts:210-219 (schema)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'], },