assess_archive_task_to_collection
Moves a task to a specified collection within the addTaskManager MCP Server, ensuring organized task management under the ADD framework. Requires task and collection record names.
Instructions
Archive a task to a collection.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collectionRecordName | Yes | Record name of the collection | |
| taskRecordName | Yes | Record name of the task |
Implementation Reference
- src/index.ts:402-412 (registration)Registration of the tool in the ListToolsRequestSchema handler, including name, description, and input schema.name: 'assess_archive_task_to_collection', description: 'Archive a task to a collection.', inputSchema: { type: 'object', properties: { taskRecordName: { type: 'string', description: 'Record name of the task' }, collectionRecordName: { type: 'string', description: 'Record name of the collection' } }, required: ['taskRecordName', 'collectionRecordName'] } },
- src/index.ts:1370-1373 (handler)The main handler function that implements the tool logic. Currently a mock that returns a success message; in production would interact with CloudKitService.private async archiveTaskToCollection(taskRecordName: string, collectionRecordName: string) { // Mock archiving task to collection via CloudKit return { content: [{ type: 'text', text: `Task ${taskRecordName} archived to collection ${collectionRecordName}` }] }; }
- src/index.ts:695-697 (registration)Dispatch/registration in the CallToolRequestSchema switch statement that routes to the handler function.case 'assess_archive_task_to_collection': this.validateArgs(args, ['taskRecordName', 'collectionRecordName']); return await this.archiveTaskToCollection(args.taskRecordName, args.collectionRecordName);