Skip to main content
Glama

create_note

Create a new note in Bear with customizable title, content, and tags, and retrieve its unique ID for easy reference and organization.

Instructions

Create a new note in Bear and return its ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNoComma separated tags (e.g., 'work,ideas')
textNoNote content
titleNoNote title

Implementation Reference

  • The handler logic for the create_note tool. Constructs parameters from input arguments and invokes Bear's create action via executeBearURL with callback support to retrieve the note ID.
    case "create_note": { const params: BearParams = {}; if (args.title) params.title = String(args.title); if (args.text) params.text = String(args.text); if (args.tags) params.tags = String(args.tags); const response = await executeBearURL("create", params, true); if (response && response.identifier) { return { content: [ { type: "text", text: `Note created successfully\nID: ${response.identifier}\nTitle: ${response.title || args.title || "Untitled"}`, }, ], }; } else { return { content: [ { type: "text", text: "Note created in Bear (ID not returned - check Bear's x-callback-url settings)", }, ], }; } }
  • The input schema and registration for the create_note tool within the ListToolsRequestHandler response.
    name: "create_note", description: "Create a new note in Bear and return its ID", inputSchema: { type: "object", properties: { title: { type: "string", description: "Note title", }, text: { type: "string", description: "Note content", }, tags: { type: "string", description: "Comma separated tags (e.g., 'work,ideas')", }, }, required: [], },
  • src/index.ts:386-508 (registration)
    The registration of all tools including create_note in the ListToolsRequestHandler.
    server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: [ { name: "set_bear_token", description: "Set the Bear app token for accessing existing notes. Get your token from Bear → Help → Advanced → API Token", inputSchema: { type: "object", properties: { token: { type: "string", description: "Your Bear app token", }, }, required: ["token"], }, }, { name: "check_bear_setup", description: "Check if Bear is properly configured and test the connection", inputSchema: { type: "object", properties: {}, required: [], }, }, { name: "create_note", description: "Create a new note in Bear and return its ID", inputSchema: { type: "object", properties: { title: { type: "string", description: "Note title", }, text: { type: "string", description: "Note content", }, tags: { type: "string", description: "Comma separated tags (e.g., 'work,ideas')", }, }, required: [], }, }, { name: "get_note", description: "Get the content of a specific note", inputSchema: { type: "object", properties: { id: { type: "string", description: "Note unique identifier", }, title: { type: "string", description: "Note title (used if id is not provided)", }, }, required: [], }, }, { name: "search_notes", description: "Search for notes and return results with metadata (requires token)", inputSchema: { type: "object", properties: { term: { type: "string", description: "Search term", }, tag: { type: "string", description: "Tag to search within", }, }, required: ["term"], }, }, { name: "get_tags", description: "Get all tags from Bear (requires token)", inputSchema: { type: "object", properties: {}, required: [], }, }, { name: "add_text", description: "Append or prepend text to an existing note", inputSchema: { type: "object", properties: { id: { type: "string", description: "Note unique identifier", }, title: { type: "string", description: "Note title (ignored if id is provided)", }, text: { type: "string", description: "Text to add", }, mode: { type: "string", enum: ["append", "prepend", "replace", "replace_all"], description: "How to add the text (default: append)", }, }, required: ["text"], }, }, ], }; });

Other Tools

Related 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/philgetzen/bear-mcp'

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