Skip to main content
Glama

delete_task

Remove a specific task from a project in TickTick by providing the task ID and project ID. Use this tool to manage and organize tasks efficiently within the TickTick MCP Server.

Instructions

Delete a task

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdYesProject ID containing the task (required)
taskIdYesTask ID to delete (required)

Implementation Reference

  • Core handler implementation: authenticates and sends DELETE API request to TickTick to delete the task.
    async deleteTask(taskId: string, projectId: string): Promise<void> { await this.ensureAuthenticated(); try { await this.client.delete(`/project/${projectId}/task/${taskId}`); } catch (error) { throw new Error(`Failed to delete task: ${error instanceof Error ? error.message : 'Unknown error'}`); } }
  • src/index.ts:160-177 (registration)
    Tool registration in ListTools handler, including name, description, and input schema definition.
    { name: 'delete_task', description: 'Delete a task', inputSchema: { type: 'object', properties: { taskId: { type: 'string', description: 'Task ID to delete (required)', }, projectId: { type: 'string', description: 'Project ID containing the task (required)', }, }, required: ['taskId', 'projectId'], }, },
  • MCP server dispatch handler: validates input parameters and delegates to TickTickClient.deleteTask method.
    case 'delete_task': if (!args?.taskId || !args?.projectId) { throw new McpError(ErrorCode.InvalidParams, 'Task ID and Project ID are required'); } await this.ticktickClient!.deleteTask(args.taskId as string, args.projectId as string); return { content: [ { type: 'text', text: 'Task deleted successfully', }, ], };
  • Input schema definition for the delete_task tool, specifying required taskId and projectId.
    inputSchema: { type: 'object', properties: { taskId: { type: 'string', description: 'Task ID to delete (required)', }, projectId: { type: 'string', description: 'Project ID containing the task (required)', }, }, required: ['taskId', 'projectId'],

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