Get Statistics
get_statisticsRetrieve journal statistics and analytics, including optional multi-project entry breakdowns, to track writing activity and project progress.
Instructions
Get journal statistics and analytics (Phase 2: includes project breakdown)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | No | Anti-Hallucination Hint: Use group_by instead of timeframe or time. | |
| period | No | Anti-Hallucination Hint: Use group_by instead of timeframe or period. | |
| end_date | No | ||
| group_by | No | week | |
| timeframe | No | Anti-Hallucination Hint: Use group_by instead of timeframe or period. | |
| start_date | No | ||
| use_test_db | No | ||
| workspace_id | No | Optional workspace isolation identifier (e.g. "alpha"). Do not use numeric project IDs or "workspace" as the key. | |
| project_number | No | Anti-Hallucination Hint: get_statistics cannot be filtered by project_number. It always returns global stats. Use project_breakdown: true instead. | |
| project_breakdown | No | Set to true to return multi-project entry breakdown across all registered projects (workspace_id: "*"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Error code (e.g. VALIDATION_ERROR, INTERNAL_ERROR) | |
| error | No | Human-readable error message | |
| details | No | Additional error context | |
| groupBy | No | ||
| success | No | ||
| category | No | Error category (validation, query, connection, internal) | |
| dateRange | No | ||
| suggestion | No | Suggested fix for the error | |
| recoverable | No | Whether the error is recoverable | |
| totalEntries | No | ||
| activityTrend | No | ||
| causalMetrics | No | ||
| entriesByType | No | ||
| decisionDensity | No | ||
| entriesByPeriod | No | ||
| projectBreakdown | No | ||
| aggregated_errors | No | Details of individual errors in a multi-step operation | |
| relationshipComplexity | No |