stats
Aggregate file counts, untagged items, and top tags for quick dashboard view. Optionally compute token totals by scanning disk to identify cleanup candidates.
Instructions
Aggregate counts for a scope: file_count, untagged_count, favorite_count, top_tags. With project_id omitted (everything), also returns by_project breakdown. include_token_total: true stat()s every matching file on disk to compute a body-size estimate — measurably slower on large vaults; default false. project_id: null = KB only; omit = all. Read-only; no side effects, auth, or rate limits. Use as a cheap dashboard or to spot untagged content for cleanup; for live disk-vs-index drift use diff_against_disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | Filter to a single project. Pass null for KB-only. Omit for everything. | |
| top_tags | No | How many top tags to return (default 10) | |
| include_token_total | No | If true, stat every matching file on disk to compute total est_tokens. Default false (cheap). |