ai_usage_log_query
Retrieve and filter AI usage billing records by tenant, state, source, and date range for audit and monthly reconciliation.
Instructions
Query the AI usage billing ledger. Filter by tenant, state, source, date range. Returns detailed rows for audit + monthly reconciliation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection | No | default | |
| tenant_code | No | Tenant slug. Derived from connection if omitted. | |
| state | No | ||
| source | No | ||
| date_from | No | ISO-8601 UTC (inclusive). | |
| date_to | No | ISO-8601 UTC (inclusive). | |
| billed_only | No | ||
| limit | No | ||
| offset | No |