decide_set_task_alert
Set alerts for tasks in the Decide realm to receive notifications at specified times, helping users manage deadlines and follow-ups within the ADD framework.
Instructions
Set task alerts in Decide realm.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskRecordName | Yes | Task record name | |
| alertDateTime | Yes | Alert date and time in ISO format for localNotification |
Implementation Reference
- src/index.ts:466-476 (registration)Registration of the 'decide_set_task_alert' tool in the MCP server's listTools handler, including name, description, and input schema definition.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'] } },
- src/index.ts:715-717 (handler)Dispatch handler in CallToolRequestSchema that validates arguments and invokes the setTaskAlert method for the tool.case 'decide_set_task_alert': this.validateArgs(args, ['taskRecordName', 'alertDateTime']); return await this.setTaskAlert(args.taskRecordName, args.alertDateTime);
- src/index.ts:1038-1040 (handler)Tool handler method that forwards the call to the core setAlertForTask implementation.private async setTaskAlert(taskRecordName: string, alertDateTime: string) { return this.setAlertForTask(taskRecordName, alertDateTime); }
- src/index.ts:1007-1011 (handler)Core tool execution logic (mock implementation) that simulates setting the task's localNotification field with the alert datetime.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.` }] }; }
- src/index.ts:102-102 (schema)Type definition in ZenTaskticTask interface for the localNotification field used to store task alerts.localNotification?: { value: string }; // Alert date/trigger (max 100 chars)