run_sql
Query an accounts-payable ledger with read-only SELECT statements to retrieve invoice, payment, and reconciliation data safely, returning columns, rows, and truncation status.
Instructions
Run a read-only SELECT (or WITH ... SELECT) against the ledger.
Returns columns, rows and whether the result was truncated. Write statements, multiple statements and PRAGMAs are rejected.
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": "run_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||