Skip to main content
Glama

create_task

Use this tool to add a new task in TickTick by specifying details like title, content, project ID, due date, priority, and tags for efficient task management.

Instructions

Create a new task in TickTick

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentNoTask description/content
dueDateNoDue date in ISO format
priorityNoTask priority (0=None, 1=Low, 3=Medium, 5=High)
projectIdNoProject ID where the task should be created
tagsNoTask tags
titleYesTask title (required)

Implementation Reference

  • Core implementation of the create_task tool: authenticates and POSTs task data to TickTick API /task endpoint.
    async createTask(task: Partial<TickTickTask>): Promise<TickTickTask> { await this.ensureAuthenticated(); try { const response = await this.client.post('/task', task); return response.data; } catch (error) { throw new Error(`Failed to create task: ${error instanceof Error ? error.message : 'Unknown error'}`); } }
  • MCP CallToolRequest handler case for create_task: validates title and calls TickTickClient.createTask, returns success message.
    case 'create_task': if (!args?.title) { throw new McpError(ErrorCode.InvalidParams, 'Title is required'); } const newTask = await this.ticktickClient!.createTask(args); return { content: [ { type: 'text', text: `Task created successfully: ${JSON.stringify(newTask, null, 2)}`, }, ], };
  • Tool schema definition including input schema, properties, and required fields for create_task registration in ListTools response.
    { name: 'create_task', description: 'Create a new task in TickTick', inputSchema: { type: 'object', properties: { title: { type: 'string', description: 'Task title (required)', }, content: { type: 'string', description: 'Task description/content', }, projectId: { type: 'string', description: 'Project ID where the task should be created', }, dueDate: { type: 'string', description: 'Due date in ISO format', }, priority: { type: 'number', description: 'Task priority (0=None, 1=Low, 3=Medium, 5=High)', }, tags: { type: 'array', items: { type: 'string' }, description: 'Task tags', }, }, required: ['title'], }, },

Other Tools

Related Tools

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/rafliruslan/ticktick-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server