execute_query
Run a single read-only SQL query and return result columns and rows, with row limits and secret columns masked for safe database inspection.
Instructions
Run ONE read-only statement (SELECT, WITH, SHOW, DESCRIBE, EXPLAIN). No comments, no semicolons. Returns {"columns":[...],"rows":[[...]]}; check the "truncated" field, and add a LIMIT or filters if it is present. Secret-looking columns are returned as "***" (see "masked").
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": {
"query": "<query>"
},
"name": "execute_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| schema | No | ||
| profile | No | ||
| database | No | ||
| max_rows | No |