Skip to main content
Glama

bear_list_notes

Read-onlyIdempotent

Retrieve Bear notes with optional tag filtering, returning note IDs, titles, tags, pin status, and modification dates. Includes both full tag expansion and leaf-only tags.

Instructions

List Bear notes with optional tag filtering. Returns an array of notes with IDs, titles, tags, pin status, and modification dates. Each note includes two tag fields: 'tags' mirrors Bear's CloudKit index verbatim (includes ancestor expansions — a note tagged #parent/child will show both 'parent' and 'parent/child'); 'attached_tags' shows only leaf tags (the most-specific tag on each branch). Notes with 'locked: true' are private/encrypted in Bear and their body content is not searchable — if a search returns no results, check whether the relevant note is locked. Use bear_get_note to read the full content of a specific note.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagNoFilter notes by tag (partial match)
include_archivedNoInclude archived notes in results
include_trashedNoInclude trashed notes in results
limitNoMaximum number of notes to return (default 30)

Implementation Reference

  • The 'bear_list_notes' tool is defined in the tools registry map along with its schema, description, and the buildArgs function that constructs CLI args for the 'bcli' executable.
    export const tools: Record<string, ToolHandler> = {
      bear_list_notes: {
        tool: {
          name: "bear_list_notes",
          description:
            "List Bear notes with optional tag filtering. Returns an array of notes with IDs, titles, tags, pin status, and modification dates. Each note includes two tag fields: 'tags' mirrors Bear's CloudKit index verbatim (includes ancestor expansions — a note tagged #parent/child will show both 'parent' and 'parent/child'); 'attached_tags' shows only leaf tags (the most-specific tag on each branch). Notes with 'locked: true' are private/encrypted in Bear and their body content is not searchable — if a search returns no results, check whether the relevant note is locked. Use bear_get_note to read the full content of a specific note.",
          inputSchema: {
            type: "object" as const,
            properties: {
              tag: {
                type: "string",
                description: "Filter notes by tag (partial match)",
              },
              include_archived: {
                type: "boolean",
                description: "Include archived notes in results",
              },
              include_trashed: {
                type: "boolean",
                description: "Include trashed notes in results",
              },
              limit: {
                type: "number",
                description:
                  "Maximum number of notes to return (default 30)",
              },
            },
          },
          annotations: {
            readOnlyHint: true,
            destructiveHint: false,
            idempotentHint: true,
          },
        },
        buildArgs: (input) => {
          const args = ["ls", "--json"];
          if (input.tag) args.push("--tag", String(input.tag));
          if (input.include_archived) args.push("--archived");
          if (input.include_trashed) args.push("--trashed");
          if (input.limit) args.push("--limit", String(input.limit));
          return args;
        },
      },
  • Input schema for bear_list_notes defining four optional parameters: tag (string), include_archived (boolean), include_trashed (boolean), and limit (number).
    inputSchema: {
      type: "object" as const,
      properties: {
        tag: {
          type: "string",
          description: "Filter notes by tag (partial match)",
        },
        include_archived: {
          type: "boolean",
          description: "Include archived notes in results",
        },
        include_trashed: {
          type: "boolean",
          description: "Include trashed notes in results",
        },
        limit: {
          type: "number",
          description:
            "Maximum number of notes to return (default 30)",
        },
      },
    },
  • The handler logic in index.ts dispatches tool calls: it calls the tool's buildArgs to get CLI arguments, then executes the 'bcli' CLI tool via execBcliWithReauth. For bear_list_notes, buildArgs returns ['ls', '--json', ...] and the result (JSON) is parsed and returned.
    const args = handler.buildArgs(params);
    let result: { stdout: string; stderr: string };
    
    // Check if this tool needs stdin piping
    const stdinData = handler.usesStdin?.(params) ?? null;
    if (stdinData !== null) {
      result = await execBcliWithStdinAndReauth(args, stdinData);
    } else {
      result = await execBcliWithReauth(args);
    }
  • The MCP server registers all tools (including bear_list_notes) via ListToolsRequestSchema and handles calls via CallToolRequestSchema, looking up the tool by name in the tools map.
    server.setRequestHandler(ListToolsRequestSchema, async () => ({
      tools: Object.values(tools).map((t) => t.tool),
    }));
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already indicate readOnlyHint=true, destructiveHint=false, and idempotentHint=true. The description adds valuable behavioral context beyond annotations, such as the behavior of locked notes ('Notes with locked: true are private/encrypted... not searchable') and the distinction between 'tags' and 'attached_tags' fields. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is 4 sentences, front-loading the main purpose. Every sentence adds value (main purpose, tag field detail, locked note caveat, reference to bear_get_note). It is concise but not overly short; the detail on tag fields is necessary for correct usage. It could be slightly tighter, but overall efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite no output schema, the description fully explains the return structure ('array of notes with IDs, titles, tags, pin status, modification dates'), the two tag fields, and the locked note behavior. It also mentions the limit parameter implicitly. This is complete for a list tool, covering edge cases and providing sufficient context for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description adds meaning beyond the schema by explaining the two tag fields in the output and the locked note limitation, which are not covered by parameter descriptions. This extra semantic context justifies a score of 4.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'List Bear notes with optional tag filtering.' It specifies the verb (list) and resource (notes), and distinguishes from sibling tools like bear_get_note and bear_search by referencing them in the usage guidance.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides guidance on when to use bear_list_notes versus alternatives: 'Use bear_get_note to read the full content of a specific note.' It also explains the tag fields and locked notes behavior, helping the agent decide when to use this tool. However, it could explicitly state when not to use it (e.g., for full-text search), but overall it's clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/KuvopLLC/better-bear'

If you have feedback or need assistance with the MCP directory API, please join our Discord server