list_databases
List all databases available on a connection's PostgreSQL server, so you can discover which databases exist before choosing one to query with its own connection.
Instructions
List the databases on this connection's server. Querying one needs its own configured connection: PostgreSQL cannot read across databases in a session.
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": {
"connection_id": "<connection_id>"
},
"name": "list_databases"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_id | Yes | Connection id. See list_connections. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |