get_note_labels
Retrieve labels associated with a specific note to organize and categorize your content within the NotesKeep MCP Server.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"noteId": "<noteId>"
},
"name": "get_note_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| noteId | Yes | ID of the note |
Implementation Reference
- src/index.ts:472-497 (handler)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 }; } } );