get_connection_info
Retrieve database connection details—address, port, engine, username, CA certificate, and a password-placeholder connection string—plus app-specific connection code when app_id is provided.
Instructions
Data to connect to the database: address, port, engine, user name, CA certificate in PEM and a connection string (with a <password> placeholder, since the API never returns the password). This server does not run queries — you're the one who connects. With app_id (an application linked to this database in a stack) it also returns how_to_connect: code in the application's language, with the real names of the variables the platform injected. (scope: databases:credentials)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "get_connection_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Database ID | |
| app_id | No | Application linked to this database in a stack; adds the "how to connect" code for it | |
| workspace_id | No |