query_invoices_sql
Run read-only SQL SELECT queries on invoice and line-item tables to answer spending questions and analyze purchases; write operations are rejected.
Instructions
Run a read-only SQL SELECT against the invoice database (tables: invoices, line_items).
Read the invoices://schema resource first. Writes 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": {
"sql": "<sql>"
},
"name": "query_invoices_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |