Skip to main content
Glama
mariomosca

NotesKeep MCP Server

by mariomosca

get_note_labels

Retrieve labels associated with a specific note to organize and categorize your content within the NotesKeep MCP Server.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteIdYesID of the note

Implementation Reference

  • The tool 'get_note_labels' is registered and implemented in src/index.ts. It takes a noteId as input, calls an API to fetch the labels for that note, and returns them as a JSON string.
    server.tool(
        "get_note_labels",
        {
            noteId: z.number().describe("ID of the note"),
        },
        async ({ noteId }) => {
            try {
                const data = await apiRequest(`/api/notes/${noteId}/labels`);
    
                return {
                    content: [{
                        type: "text",
                        text: JSON.stringify(data.labels, null, 2)
                    }]
                };
            } catch (error) {
                return {
                    content: [{
                        type: "text",
                        text: `Error getting note labels: ${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