assess_edit_task
Modify task details, including name and priority, within the Assess realm using the addTaskManager MCP Server. Streamline task management within the ADD framework by ensuring accurate updates to task records.
Instructions
Edit task content in Assess realm (taskName, priority).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskName | No | Updated task name/description | |
| taskPriority | No | Updated task priority (1-5) | |
| taskRecordName | Yes | Record name of the task to edit |
Implementation Reference
- src/index.ts:939-946 (handler)The core handler function that implements the 'assess_edit_task' tool. It validates the task record name, optionally updates the task name and priority, and returns a formatted success message (currently a mock implementation without actual CloudKit calls).private async editTask(taskRecordName: string, taskName?: string, taskPriority?: number) { // Mock fetch & check realm (should be REALM_ASSESS_ID) // Mock update: console.log('Mock CloudKit: Editing Task', taskRecordName, { taskName, taskPriority }); let updateMsg = `Task ${taskRecordName} updated.`; if (taskName) updateMsg += ` Name set to "${taskName}".`; if (taskPriority) updateMsg += ` Priority set to ${taskPriority}.`; return { content: [{ type: 'text', text: updateMsg }] }; }
- src/index.ts:273-280 (schema)Input schema for the 'assess_edit_task' tool, defining the required 'taskRecordName' parameter and optional 'taskName' and 'taskPriority' fields with validation constraints.type: 'object', properties: { taskRecordName: { type: 'string', description: 'Record name of the task to edit' }, taskName: { type: 'string', description: 'Updated task name/description' }, taskPriority: { type: 'integer', minimum: 1, maximum: 5, description: 'Updated task priority (1-5)'}, }, required: ['taskRecordName'] }
- src/index.ts:270-281 (registration)Registration of the 'assess_edit_task' tool in the ListToolsRequestSchema response, including name, description, and input schema.name: 'assess_edit_task', description: 'Edit task content in Assess realm (taskName, priority).', inputSchema: { type: 'object', properties: { taskRecordName: { type: 'string', description: 'Record name of the task to edit' }, taskName: { type: 'string', description: 'Updated task name/description' }, taskPriority: { type: 'integer', minimum: 1, maximum: 5, description: 'Updated task priority (1-5)'}, }, required: ['taskRecordName'] } },
- src/index.ts:662-664 (registration)Tool dispatch registration in the CallToolRequestSchema switch statement, handling the tool call by validating arguments and invoking the editTask handler.case 'assess_edit_task': this.validateArgs(args, ['taskRecordName']); return await this.editTask(args.taskRecordName, args.taskName, args.taskPriority);