Skip to main content
Glama
bigjeager

Bear App MCP Server

by bigjeager

bear_trash_note

Move notes to trash using a unique identifier or search term in Bear App. Optionally display the Bear window for visibility.

Instructions

Move a note to trash

Input Schema

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

Input Schema (JSON Schema)

{ "properties": { "id": { "description": "Note unique identifier", "type": "string" }, "search": { "description": "Search term to find notes to trash", "type": "string" }, "show_window": { "description": "Show Bear window", "type": "boolean" } }, "type": "object" }

Implementation Reference

  • Handler function for bear_trash_note tool. Builds a Bear URL with the 'trash' action using provided id or search params, executes the URL, 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}` : ""}` } ] }; }
  • src/index.ts:508-528 (registration)
    Tool registration in the tools list, including name, description, and input schema for bear_trash_note.
    { 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 case in the central request handler that routes bear_trash_note calls to the trashNote method.
    case "bear_trash_note": return await this.trashNote(args);
  • Input schema definition for the bear_trash_note tool.
    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" } } }

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