Skip to main content
Glama
mariomosca

NotesKeep MCP Server

by mariomosca

delete_note

Remove a specific note from NotesKeep by providing its ID to manage your note collection effectively.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesID of the note to delete

Implementation Reference

  • The delete_note tool registration and its handler implementation, which uses apiRequest to delete a note by ID.
    server.tool(
        "delete_note",
        {
            id: z.number().describe("ID of the note to delete"),
        },
        async ({ id }) => {
            try {
                await apiRequest(`/api/notes/${id}`, { method: "DELETE" });
    
                return {
                    content: [{
                        type: "text",
                        text: `Note ${id} deleted successfully!`
                    }]
                };
            } catch (error) {
                return {
                    content: [{
                        type: "text",
                        text: `Error deleting 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