Skip to main content
Glama
MikeyBeez

MCP Reminders

by MikeyBeez

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
NameRequiredDescriptionDefault
idYesReminder ID

Implementation Reference

  • 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.` 
        }],
      };
    }
  • 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'],
      },
    },
  • 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;
    }

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/MikeyBeez/mcp-reminders'

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