Skip to main content
Glama

assess_create_context

Create a new context in the Assess realm to organize tasks and projects within the addTaskManager MCP Server, ensuring structured task management under the ADD framework.

Instructions

Create a new context in Assess realm.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contextNameYesContext name (max 30 chars)

Implementation Reference

  • src/index.ts:319-328 (registration)
    Registration of the 'assess_create_context' tool including its name, description, and input schema in the ListTools response.
    name: 'assess_create_context', description: 'Create a new context in Assess realm.', inputSchema: { type: 'object', properties: { contextName: { type: 'string', description: 'Context name (max 30 chars)' } }, required: ['contextName'] } },
  • Dispatch handler in the CallToolRequestSchema switch statement that validates arguments and calls the createContext method.
    case 'assess_create_context': this.validateArgs(args, ['contextName']); return await this.createContext(args.contextName);
  • Core handler function implementing the tool logic: generates a unique CloudKit recordName using UUID and returns a mock success response (in production would save to CloudKit using CloudKitService.saveRecord).
    private async createContext(contextName: string) { const recordName = `context_${uuidv4()}`; // Mock context creation via CloudKit return { content: [{ type: 'text', text: `Context "${contextName}" created with recordName: ${recordName}` }] }; }
  • TypeScript interface defining the structure of ZenTaskticContext records for CloudKit storage, used in production implementations.
    interface ZenTaskticContext { recordName?: string; recordType: 'Contexts'; fields: { contextName: { value: string }; // Max 30 chars, min 1 uniqueId: { value: string }; // UUID lastModified: { value: number }; // Timestamp // References (relationships in Core Data) projects?: { value: CKReference[] }; // List of references to Project records tasks?: { value: CKReference[] }; // List of references to Task records }; }

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