notes_delete
Delete a note by title from the Vulnerable Notes MCP Server. This tool removes notes immediately without requiring confirmation.
Instructions
Delete a note by title. Executes immediately without confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Title of the note to delete |
Implementation Reference
- src/tools/notes.ts:165-181 (handler)The handler logic for the 'notes_delete' tool, which deletes a file based on the provided title.
case "notes_delete": { const { title } = args as { title: string }; const filePath = getNotePath(title); // VULNERABILITY: SAFE-T1701 - No confirmation required // Dangerous operation executes immediately if (fs.existsSync(filePath)) { fs.unlinkSync(filePath); return { content: [{ type: "text", text: `Note "${title}" deleted` }], }; } return { content: [{ type: "text", text: `Note "${title}" not found` }], }; } - src/tools/notes.ts:54-63 (schema)The schema/definition for the 'notes_delete' tool, specifying its input requirements.
name: "notes_delete", description: "Delete a note by title. Executes immediately without confirmation.", inputSchema: { type: "object" as const, properties: { title: { type: "string", description: "Title of the note to delete" }, }, required: ["title"], }, },