bear_note_stats
Retrieve key statistics from your Bear notes library: total notes, words, tags, pinned, archived, trashed, TODOs, dates, and top tags.
Instructions
Get statistics about the Bear notes library: total notes, words, tags, pinned, archived, trashed, notes with TODOs, oldest/newest dates, and top 10 tags by note count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp-server/src/tools.ts:697-700 (schema)Input schema for bear_note_stats - no input parameters required (empty object)
inputSchema: { type: "object" as const, properties: {}, }, - mcp-server/src/tools.ts:692-708 (registration)Full tool registration entry for bear_note_stats in the tools map. Defines the tool metadata (name, description, annotations) and buildArgs callback that builds CLI arguments ["stats", "--json"]. The handler is not a separate function - the registration itself contains the handler logic via buildArgs.
bear_note_stats: { tool: { name: "bear_note_stats", description: "Get statistics about the Bear notes library: total notes, words, tags, pinned, archived, trashed, notes with TODOs, oldest/newest dates, and top 10 tags by note count.", inputSchema: { type: "object" as const, properties: {}, }, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, }, }, buildArgs: () => ["stats", "--json"], }, - mcp-server/src/tools.ts:692-708 (handler)The tool registration includes buildArgs which generates CLI args ["stats", "--json"]. The actual execution of the bcli command with these args happens in index.ts (line 81-89) where handler.buildArgs(params) is called and the result is passed to execBcliWithReauth. No standalone handler function exists - the tool is fully defined by this entry.
bear_note_stats: { tool: { name: "bear_note_stats", description: "Get statistics about the Bear notes library: total notes, words, tags, pinned, archived, trashed, notes with TODOs, oldest/newest dates, and top 10 tags by note count.", inputSchema: { type: "object" as const, properties: {}, }, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, }, }, buildArgs: () => ["stats", "--json"], },