Skip to main content
Glama

delete_note

Remove a specific note from a task request in TaskFlow MCP by providing the request ID and note ID.

Instructions

Delete a note from a request.

Provide the 'requestId' and 'noteId' of the note to delete.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
requestIdYes
noteIdYes

Implementation Reference

  • The main handler function for the 'delete_note' tool. Extracts requestId and noteId from arguments and calls the TaskFlowService.deleteNote method.
    async delete_note(args: any) { const { requestId, noteId } = args ?? {}; return service.deleteNote(String(requestId), String(noteId)); },
  • JSON Schema definition for the 'delete_note' tool input validation.
    delete_note: { type: "object", properties: { requestId: { type: "string" }, noteId: { type: "string" }, }, required: ["requestId", "noteId"], },
  • Registration of the 'delete_note' tool (DELETE_NOTE_TOOL) in the server's list of available tools.
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: [ PLAN_TASK_TOOL, GET_NEXT_TASK_TOOL, MARK_TASK_DONE_TOOL, OPEN_TASK_DETAILS_TOOL, LIST_REQUESTS_TOOL, ADD_TASKS_TO_REQUEST_TOOL, UPDATE_TASK_TOOL, DELETE_TASK_TOOL, ADD_SUBTASKS_TOOL, MARK_SUBTASK_DONE_TOOL, UPDATE_SUBTASK_TOOL, DELETE_SUBTASK_TOOL, EXPORT_TASK_STATUS_TOOL, ADD_NOTE_TOOL, UPDATE_NOTE_TOOL, DELETE_NOTE_TOOL, ADD_DEPENDENCY_TOOL, GET_PROMPTS_TOOL, SET_PROMPTS_TOOL, UPDATE_PROMPTS_TOOL, REMOVE_PROMPTS_TOOL, ARCHIVE_COMPLETED_REQUESTS_TOOL, LIST_ARCHIVED_REQUESTS_TOOL, RESTORE_ARCHIVED_REQUEST_TOOL, ], }));
  • Core service method that performs the note deletion logic: loads data, finds the note, removes it from the request's notes array, and saves the changes.
    public async deleteNote(requestId: string, noteId: string) { await this.loadTasks(); const req = this.getRequest(requestId); if (!req) return { status: "error", message: "Request not found" }; if (!req.notes) return { status: "error", message: "No notes found for this request" }; const noteIndex = req.notes.findIndex((n) => n.id === noteId); if (noteIndex === -1) return { status: "error", message: "Note not found" }; req.notes.splice(noteIndex, 1); await this.saveTasks(); return { status: "note_deleted", message: `Note ${noteId} has been deleted.` }; }
  • Initialization of handlers object which includes the delete_note handler function from taskflowHandlers.
    this.handlers = taskflowHandlers(service);

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/pinkpixel-dev/taskflow-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server