Skip to main content
Glama
mariomosca

NotesKeep MCP Server

by mariomosca

delete_label

Remove a label from your NotesKeep notes to maintain organized note collections by specifying the label ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesID of the label to delete

Implementation Reference

  • The 'delete_label' tool is registered and implemented directly in src/index.ts, handling the DELETE request to the labels API.
    server.tool(
        "delete_label",
        {
            id: z.number().describe("ID of the label to delete"),
        },
        async ({ id }) => {
            try {
                await apiRequest(`/api/labels/${id}`, { method: "DELETE" });
    
                return {
                    content: [{
                        type: "text",
                        text: `Label ${id} deleted successfully!`
                    }]
                };
            } catch (error) {
                return {
                    content: [{
                        type: "text",
                        text: `Error deleting label: ${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