run_sql
Run read-only SQL SELECT queries against the microfinance loan-portfolio warehouse to analyze vetted KPIs by branch, region, segment, gender or period. Returns up to 200 rows; writes and file access are refused.
Instructions
Run one read-only DuckDB SELECT query (at most 200 rows returned).
Only warehouse tables and the loan_position(DATE 'YYYY-MM-DD') macro can be read. Writes, file access and settings are refused with an explanation.
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": "run_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes |