Skip to main content
Glama

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
NameRequiredDescriptionDefault
taskRecordNameYesTask record name
alertDateTimeYesAlert 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'] } },
  • 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);
  • Tool handler method that forwards the call to the core setAlertForTask implementation.
    private async setTaskAlert(taskRecordName: string, alertDateTime: string) { return this.setAlertForTask(taskRecordName, alertDateTime); }
  • 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.` }] }; }
  • Type definition in ZenTaskticTask interface for the localNotification field used to store task alerts.
    localNotification?: { value: string }; // Alert date/trigger (max 100 chars)

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