complete_reminder
Mark reminders as completed by providing the reminder ID to track and manage tasks across AI assistant sessions.
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)The core handler function in ReminderManager that marks a reminder as completed by updating its status to 'completed', adding a completion timestamp, saving to JSON file, and returning true on success.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)The MCP dispatch handler for 'complete_reminder' tool calls, which extracts the id argument, calls the core completeReminder method, and formats a response 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:267-276 (schema)Input schema definition for the complete_reminder tool, requiring a single 'id' string parameter.inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Reminder ID' } }, required: ['id'], },
- src/index.ts:264-277 (registration)Tool registration in the ListTools response, defining name, description, and input schema for complete_reminder.{ name: 'complete_reminder', description: 'Mark a reminder as completed', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Reminder ID' } }, required: ['id'], }, },