Skip to main content
Glama
mariomosca

NotesKeep MCP Server

by mariomosca

remove_label_from_note

Remove a label from a note in NotesKeep to update its organization and categorization.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteIdYesID of the note
labelIdYesID of the label to remove

Implementation Reference

  • The handler function for the remove_label_from_note tool, which sends a DELETE request to the API.
    async ({ noteId, labelId }) => {
        try {
            await apiRequest(`/api/notes/${noteId}/labels?labelId=${labelId}`, {
                method: "DELETE",
            });
    
            return {
                content: [{
                    type: "text",
                    text: `Label ${labelId} removed from note ${noteId} successfully!`
                }]
            };
        } catch (error) {
            return {
                content: [{
                    type: "text",
                    text: `Error removing label from note: ${error}`
                }],
                isError: true
            };
  • src/index.ts:409-414 (registration)
    Registration of the remove_label_from_note tool with its input schema using zod.
    server.tool(
        "remove_label_from_note",
        {
            noteId: z.number().describe("ID of the note"),
            labelId: z.number().describe("ID of the label to remove"),
        },

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