Skip to main content
Glama
bigjeager

Bear App MCP Server

by bigjeager

bear_trash_note

Move notes to trash in Bear App by specifying a note ID or search term to find and remove unwanted content.

Instructions

Move a note to trash

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoNote unique identifier
searchNoSearch term to find notes to trash
show_windowNoShow Bear window

Implementation Reference

  • The main handler function for the 'bear_trash_note' tool. It builds a Bear x-callback URL with action 'trash' using the provided note ID or search term, executes it, and returns a success message.
    private async trashNote(args: any) {
      const params: Record<string, string | boolean> = {};
      
      if (args.id) params.id = args.id;
      if (args.search) params.search = args.search;
      if (args.show_window) params.show_window = "yes";
    
      const url = this.buildBearURL("trash", params);
      await this.executeURL(url);
    
      return {
        content: [
          {
            type: "text",
            text: `Moved note(s) to trash${args.id ? ` with ID: ${args.id}` : args.search ? ` matching: ${args.search}` : ""}`
          }
        ]
      };
    }
  • Input schema for the bear_trash_note tool, defining optional parameters: id (string), search (string), show_window (boolean).
    inputSchema: {
      type: "object",
      properties: {
        id: {
          type: "string",
          description: "Note unique identifier"
        },
        search: {
          type: "string",
          description: "Search term to find notes to trash"
        },
        show_window: {
          type: "boolean",
          description: "Show Bear window"
        }
      }
    }
  • src/index.ts:508-528 (registration)
    Tool registration in the listTools response, including name, description, and input schema.
    {
      name: "bear_trash_note",
      description: "Move a note to trash",
      inputSchema: {
        type: "object",
        properties: {
          id: {
            type: "string",
            description: "Note unique identifier"
          },
          search: {
            type: "string",
            description: "Search term to find notes to trash"
          },
          show_window: {
            type: "boolean",
            description: "Show Bear window"
          }
        }
      }
    },
  • src/index.ts:719-720 (registration)
    Dispatch registration in the CallToolRequest handler switch statement, mapping the tool name to the trashNote method.
    case "bear_trash_note":
      return await this.trashNote(args);

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/bigjeager/bear-mcp-server'

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