delete_label
Remove a label from your NotesKeep notes to maintain organized note collections by specifying the label ID.
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": {
"id": "<id>"
},
"name": "delete_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the label to delete |
Implementation Reference
- src/index.ts:349-370 (handler)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