Skip to main content
Glama
mariomosca

NotesKeep MCP Server

by mariomosca

archive_note

Archive a note by its ID to remove it from active view while preserving it in the NotesKeep system for future reference.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesID of the note to archive

Implementation Reference

  • The tool 'archive_note' is defined and implemented here using the 'server.tool' method. It takes a note ID as input and makes a PUT request to the API to set 'isArchived' to true.
    server.tool(
        "archive_note",
        {
            id: z.number().describe("ID of the note to archive"),
        },
        async ({ id }) => {
            try {
                await apiRequest(`/api/notes/${id}`, {
                    method: "PUT",
                    body: JSON.stringify({ isArchived: true }),
                });
    
                return {
                    content: [{
                        type: "text",
                        text: `Note ${id} archived successfully!`
                    }]
                };
            } catch (error) {
                return {
                    content: [{
                        type: "text",
                        text: `Error archiving note: ${error}`
                    }],
                    isError: true
                };
            }
        }
    );

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/mariomosca/noteskeep-mcp'

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