Run CoraDB SELECT statements
execute_selectRun one or more SELECT statements against CoraDB to retrieve result columns and rows for relational SQL or graph queries, with non-SELECT statements refused and nothing committed.
Instructions
Run one SELECT, or several separated by ;, and return the columns (name, type, precision, scale) and rows exactly as the engine returns them. Works for relational SQL and graph queries (SELECT … FROM MATCH …). Each statement is compiled first and refused unless it is a SELECT; nothing is ever committed. Statements run in order and the first error stops the script.
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>",
"database": "<database>"
},
"name": "execute_select"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | One or more SELECT statements separated by ;. | |
| host | No | CoraDB broker host. Default: localhost. | |
| port | No | CoraDB broker port. Default: 33000. | |
| user | No | Database user. Default: dba. | |
| params | No | Values for the ? placeholders of a single statement, in order. | |
| maxRows | No | Most rows to return per SELECT (default 200, at most 5000). totalRows still reports the full count. | |
| database | Yes | The database to open. | |
| password | No | Password of that user. Default: empty. | |
| timeoutMs | No | Time limit for the whole call, in milliseconds (default 120000, at most 600000). When it runs out the running statement is cancelled on the server, the rest are skipped and everything is rolled back. |