ck_query_sql
Execute SQL SELECT queries on financial transaction data to analyze spending, accounts, categories, and merchants. Supports CTEs for complex analysis.
Instructions
Execute a raw SQL SELECT query (CTEs via WITH ... SELECT are supported) against the transactions database. Non-SELECT statements (INSERT, UPDATE, DELETE, DROP, etc.) are rejected. Tables: transactions, accounts, categories, merchants, sync_state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | A SELECT SQL statement |