Skip to main content
Glama

connect_database

Establish a connection to a CockroachDB database and create a connection pool by specifying host, port, credentials, and SSL configurations. Returns success or error messages upon execution.

Instructions

Connect to a CockroachDB database and create a connection pool.

Args: host (str): CockroachDB host. port (int): CockroachDB port (default: 26257). database (str): Database name (default: "defaultdb"). username (str): Username (default: "root"). password (str): Password. sslmode (str): SSL mode (default: disable - Possible values: allow, prefer, require, verify-ca, verify-full). sslcert (str): Path to user certificate file. sslkey (str): Path to user key file. sslrootcert (str): Path to CA certificate file.

Returns: A success message or an error message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
databaseYes
hostYes
passwordYes
portYes
sslcertYes
sslkeyYes
sslmodeYes
sslrootcertYes
usernameYes

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/amineelkouhen/mcp-cockroachdb'

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