Skip to main content
Glama

decide_set_task_alert

Set timely alerts for specific tasks in the Decide realm to ensure reminders are triggered at designated times. Integrates with addTaskManager for streamlined task management.

Instructions

Set task alerts in Decide realm.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
alertDateTimeYesAlert date and time in ISO format for localNotification
taskRecordNameYesTask record name

Implementation Reference

  • src/index.ts:466-476 (registration)
    Tool registration in ListToolsRequestSchema handler, including name, description, and input schema definition for 'decide_set_task_alert'.
    name: 'decide_set_task_alert', description: 'Set task alerts in Decide realm.', inputSchema: { type: 'object', properties: { taskRecordName: { type: 'string', description: 'Task record name' }, alertDateTime: { type: 'string', format: 'date-time', description: 'Alert date and time in ISO format for localNotification' } }, required: ['taskRecordName', 'alertDateTime'] } },
  • Dispatch handler in CallToolRequestSchema switch statement that validates arguments and calls setTaskAlert method.
    case 'decide_set_task_alert': this.validateArgs(args, ['taskRecordName', 'alertDateTime']); return await this.setTaskAlert(args.taskRecordName, args.alertDateTime);
  • Intermediate handler method that delegates to the core setAlertForTask implementation.
    private async setTaskAlert(taskRecordName: string, alertDateTime: string) { return this.setAlertForTask(taskRecordName, alertDateTime); }
  • Core handler function implementing the tool logic (currently a mock that returns success message; production would update CloudKit Task record's localNotification field).
    private async setAlertForTask(taskRecordName: string, alertDateTimeISO: string) { // Mock fetch & check realm (should be REALM_DECIDE_ID) // Mock update: console.log('Mock CloudKit: Setting localNotification', alertDateTimeISO, 'for Task', taskRecordName); return { content: [{ type: 'text', text: `Alert at ${alertDateTimeISO} set for Task ${taskRecordName} in Decide realm.` }] }; }

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/dragosroua/addtaskmanager-mcp-server'

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