get_session_insights
Analyze sessions to reveal persona usage, consultation frequency, decision trends, and health metrics for actionable insights.
Instructions
Get comprehensive analytics and insights for a session.
Provides data-driven insights into persona usage patterns, consultation frequency, decision-making trends, and session health metrics.
Args: session_id: Session identifier project_root: Absolute path to project root (for local sessions) time_range: Analysis window: - "all_time" (default): All consultations - "last_7_days": Last 7 days - "last_30_days": Last 30 days format: Output format ("markdown", "json", "text")
Returns: Formatted analytics report with: - Persona usage statistics (most/least used) - Context distribution (CRISIS, SECURITY, etc.) - Mode usage (orchestrated, quick, crisis, standards) - Decision metrics and velocity - Session health indicators
Examples: # Get all-time insights get_session_insights(session_id="my-project")
# Last 30 days in JSON
get_session_insights(
session_id="my-project",
time_range="last_30_days",
format="json"
)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | markdown | |
| session_id | No | default | |
| time_range | No | all_time | |
| project_root | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |