delete_reminder
Remove a specific reminder from the MCP Reminders system by providing its unique ID to clear completed or unwanted notifications.
Instructions
Delete a reminder
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Reminder ID |
Implementation Reference
- src/index.ts:378-387 (handler)The handler function for the 'delete_reminder' tool within the CallToolRequestSchema request handler. It calls the underlying deleteReminder method and returns a formatted response.case 'delete_reminder': { const { id } = args as { id: string }; const success = reminders.deleteReminder(id); return { content: [{ type: 'text', text: success ? `Reminder ${id} deleted.` : `Reminder ${id} not found.` }], }; }
- src/index.ts:281-290 (schema)JSON schema defining the input parameters for the delete_reminder tool (requires 'id' string).inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Reminder ID' } }, required: ['id'], },
- src/index.ts:278-291 (registration)Registration of the 'delete_reminder' tool in the ListToolsRequestSchema handler, including name, description, and schema.{ name: 'delete_reminder', description: 'Delete a reminder', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Reminder ID' } }, required: ['id'], }, },
- src/index.ts:155-159 (helper)Helper method in ReminderManager class that performs the actual deletion by removing from Map and saving to JSON file.deleteReminder(id: string): boolean { const deleted = this.reminders.delete(id); if (deleted) this.saveReminders(); return deleted; }