income_by_source
Generate income breakdown by source for a specified period, with optional grouping by month, quarter, or year to compare performance across periods.
Instructions
Get income breakdown by source for a period.
Returns a compact aligned text table by default. Use verbose=true for the full structured dict.
Args: start_date: Start of period (YYYY-MM-DD) end_date: End of period (YYYY-MM-DD) depth: Hierarchy depth for grouping (1 = top-level categories, 2 = subcategories) verbose: If true, return the structured dict. group_by: Optional "month", "quarter", or "year" — split the range into sub-period columns and return a multi-period TSV table (source rows, one column per period plus Total and Avg). Overrides verbose.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| verbose | No | ||
| end_date | Yes | ||
| group_by | No | ||
| start_date | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |