complete_reminder
Mark a specific reminder as completed using its unique ID to manage tasks and notes across AI assistant sessions effectively.
Instructions
Mark a reminder as completed
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Reminder ID |
Implementation Reference
- src/index.ts:145-153 (handler)Core handler function in ReminderManager class that marks a specific reminder as completed by updating its status and saving the changes to the JSON file.completeReminder(id: string): boolean { const reminder = this.reminders.get(id); if (!reminder || reminder.status !== 'active') return false; reminder.status = 'completed'; reminder.completed = new Date().toISOString(); this.saveReminders(); return true; }
- src/index.ts:367-376 (handler)MCP tool dispatch handler for 'complete_reminder' that extracts the reminder ID from arguments and calls the core completeReminder method, returning success or failure message.case 'complete_reminder': { const { id } = args as { id: string }; const success = reminders.completeReminder(id); return { content: [{ type: 'text', text: success ? `Reminder ${id} marked as completed.` : `Reminder ${id} not found.` }], }; }
- src/index.ts:264-277 (registration)Registration of the 'complete_reminder' tool in the ListTools response, including name, description, and input schema.{ name: 'complete_reminder', description: 'Mark a reminder as completed', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Reminder ID' } }, required: ['id'], }, },
- src/index.ts:267-276 (schema)Input schema definition for the complete_reminder tool, specifying the required 'id' parameter.inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Reminder ID' } }, required: ['id'], },