connection_find
Find database connections by host, port, database, type, read-only status, or metadata key-value pairs. Filters combine with AND, ignoring credentials.
Instructions
Find configured database connections by parameters: host, port, database, type, read_only and/or metadata key-value pairs. All provided filters are combined with AND. Username/password filters are ignored. Returns the same sanitized shape as connection_list.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "connection_find"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | Exact database host to match | |
| port | No | Database port to match | |
| type | No | Dialect: postgres | mysql | redshift | |
| user | No | Ignored: connections are never filtered by credentials | |
| database | No | Database name to match | |
| metadata | No | Metadata key-value pairs; every pair must match (AND) | |
| password | No | Ignored: connections are never filtered by credentials | |
| username | No | Ignored: connections are never filtered by credentials | |
| read_only | No | Match connections with this read_only setting |