Skip to main content
Glama
mariomosca

NotesKeep MCP Server

by mariomosca

pin_note

Pin or unpin notes in NotesKeep to prioritize important information and organize your workspace effectively.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesID of the note to pin/unpin
pinnedNoPin (true) or unpin (false)

Implementation Reference

  • The handler and registration for the 'pin_note' tool, which updates the 'isPinned' status of a note via the API.
    server.tool(
        "pin_note",
        {
            id: z.number().describe("ID of the note to pin/unpin"),
            pinned: z.boolean().optional().default(true).describe("Pin (true) or unpin (false)"),
        },
        async ({ id, pinned }) => {
            try {
                await apiRequest(`/api/notes/${id}`, {
                    method: "PUT",
                    body: JSON.stringify({ isPinned: pinned }),
                });
    
                return {
                    content: [{
                        type: "text",
                        text: `Note ${id} ${pinned ? "pinned" : "unpinned"} successfully!`
                    }]
                };
            } catch (error) {
                return {
                    content: [{
                        type: "text",
                        text: `Error pinning 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