Skip to main content
Glama

assess_add_task_to_idea

Link an existing task to an idea in the Assess realm to organize tasks within project concepts using the ADD framework.

Instructions

Add an existing task to an idea in Assess realm.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskRecordNameYesRecord name of the task
ideaRecordNameYesRecord name of the idea

Implementation Reference

  • The core handler function that implements the tool logic. It simulates adding a task to an idea by returning a mock success message (in production, this would interact with CloudKit to update the idea's 'tasks' reference array).
    private async addTaskToIdea(taskRecordName: string, ideaRecordName: string) { // Mock adding task to idea via CloudKit return { content: [{ type: 'text', text: `Task ${taskRecordName} added to idea ${ideaRecordName}` }] }; }
  • src/index.ts:365-376 (registration)
    Tool registration in the ListToolsRequestSchema response, defining the tool name, description, and input schema.
    { name: 'assess_add_task_to_idea', description: 'Add an existing task to an idea in Assess realm.', inputSchema: { type: 'object', properties: { taskRecordName: { type: 'string', description: 'Record name of the task' }, ideaRecordName: { type: 'string', description: 'Record name of the idea' } }, required: ['taskRecordName', 'ideaRecordName'] } },
  • Dispatch handler in the CallToolRequestSchema switch statement that validates input arguments and invokes the main addTaskToIdea handler function.
    case 'assess_remove_task_from_project': this.validateArgs(args, ['taskRecordName', 'projectRecordName']); return await this.removeTaskFromProject(args.taskRecordName, args.projectRecordName);
  • Input schema definition for validating tool arguments: requires taskRecordName and ideaRecordName as strings.
    inputSchema: { type: 'object', properties: { taskRecordName: { type: 'string', description: 'Record name of the task' }, ideaRecordName: { type: 'string', description: 'Record name of the idea' } }, required: ['taskRecordName', 'ideaRecordName'] }
  • Type definition for Idea records in CloudKit, including the 'tasks' reference array that would be updated when adding a task to an idea.
    export interface ZenTaskticIdea { recordName?: string; recordType: 'Ideas'; // Note: entity name is 'Ideas' in Core Data fields: { ideaName: { value: string }; // Max 1500 chars, combines original title & body realmId: { value: number }; // Integer 16, default 0 (usually REALM_ASSESS_ID) uniqueId: { value: string }; // UUID lastModified: { value: number }; // Timestamp // References (relationships in Core Data) collection?: { value: CKReference }; // Reference to Collections record realm?: { value: CKReference }; // Reference to Realms record tasks?: { value: CKReference[] }; // Tasks derived from this idea // removed createdAt, use lastModified or CloudKit system creationDate }; }

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