diagnose_query
Run a single read-only diagnostic SELECT, SHOW, or DESCRIBE query through a saved DBeaver connection, with timeouts, row caps, and automatic PII masking.
Instructions
Executes a single strictly READ-ONLY diagnostic query (SELECT / SHOW / DESCRIBE) using DBeaver's saved connection inside an engine-enforced READ ONLY transaction with timeout & row caps. Automatically masks PII columns while preserving length, NULL vs empty, and whitespace anomalies.
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": {
"sql": "<sql>"
},
"name": "diagnose_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| database | No | Target database/schema name on that connection. | |
| max_rows | No | ||
| connection | No | DBeaver connection name or host (e.g. 'localhost', 'staging-db'). Defaults to default_connection. |