Skip to main content
Glama

archive_note

Archive notes in Bear Notes on macOS by moving them to the archive folder, helping users organize and declutter their workspace.

Instructions

Archive a note

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
note_idYesThe unique identifier of the note (ZUNIQUEIDENTIFIER)

Implementation Reference

  • The core handler function that constructs the x-callback-url for Bear to archive a note.
    def archive_note(note_id: str) -> dict[str, str]:
        """
        Archive a note.
    
        Args:
            note_id: The unique identifier of the note (ZUNIQUEIDENTIFIER)
    
        Returns:
            Dictionary with operation result
        """
        params = {"id": note_id}
    
        query_string = urllib.parse.urlencode(params)
        url = f"bear://x-callback-url/archive?{query_string}"
    
        return _open_bear_url(url)
  • Tool definition and registration within the MCP server.
    Tool(
        name="archive_note",
        description="Archive a note",
        inputSchema={
            "type": "object",
            "properties": {
                "note_id": {
                    "type": "string",
                    "description": "The unique identifier of the note (ZUNIQUEIDENTIFIER)",
                },
            },
            "required": ["note_id"],
        },
    ),

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/maxim-ist/mcp-bear'

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