cja_run_trended_report
Analyze how metrics change over time with hourly, daily, weekly, or monthly granularity. Optionally break down trends by a dimension for deeper insights.
Instructions
Run a time-series trend report.
This tool analyzes how metrics change over time at a specified granularity (hourly, daily, weekly, monthly). Optionally break down trends by a dimension.
Args: metrics: List of metric IDs to trend over time. start_date: Start date in YYYY-MM-DD format. end_date: End date in YYYY-MM-DD format. granularity: Time granularity - 'hour', 'day', 'week', or 'month' (default: 'day'). dimension: Optional dimension to break down the trend (e.g., 'variables/mobiledevicetype'). dimension_limit: Maximum dimension items if dimension specified (default: 5, max: 50). segment_ids: Optional list of segment IDs to filter the report. dataview_id: Optional data view ID (uses configured default if not provided).
Returns: Dictionary with time-series trend data.
Example queries: - "Show me daily visits trend for last 30 days" - "Trend pageviews by hour for yesterday" - "Show weekly revenue trend broken down by device type" - "Monthly orders trend for Q1 2024"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metrics | Yes | ||
| start_date | Yes | ||
| end_date | Yes | ||
| granularity | No | day | |
| dimension | No | ||
| dimension_limit | No | ||
| segment_ids | No | ||
| dataview_id | No |