Skip to main content
Glama
ZH1754629545

TickTick/Dida365 MCP Server

by ZH1754629545

complete_task

Mark tasks as completed in TickTick/Dida365 by providing task and project IDs. Updates task status and records completion timestamp to track progress.

Instructions

Mark a task as completed. Requires both task ID and project ID. Updates the task's status to completed and sets completion timestamp.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskIdYesThe ID of the task to mark as complete (required)
projectIdYesThe ID of the project containing the task (required)

Implementation Reference

  • Handler for complete_task tool: validates projectId and taskId, POSTs to Dida365 API /project/{projectId}/task/{taskId}/complete to mark task as completed, returns the response as text content.
    case "complete_task":{ const taskId = args.taskId as string; const projectId = args.projectId as string; throwValidError(projectId,taskId); const response: AxiosResponse = await dida365Api.post(`/project/${projectId}/task/${taskId}/complete`) return { content:[ { type:"text", text: `任务更新: ${JSON.stringify(response.data, null, 2)}` } ] } }
  • Schema definition for complete_task tool in ListTools response, specifying input parameters taskId and projectId as required strings.
    { name: "complete_task", description: "Mark a task as completed. Requires both task ID and project ID. Updates the task's status to completed and sets completion timestamp.", inputSchema: { type: "object", properties: { taskId: { type: "string", description: "The ID of the task to mark as complete (required)", }, projectId: { type: "string", description: "The ID of the project containing the task (required)" } }, required: ["taskId","projectId"], }, },
  • Helper function throwValidError used in complete_task handler to validate that projectId and taskId are provided.
    function throwValidError(projectId : string,taskId : string){ if(!projectId&&!taskId) throw new McpError(ErrorCode.InvalidRequest,"projectId 和 taskId 为空") if(!projectId) throw new McpError(ErrorCode.InvalidRequest,"projectId 为空") if(!taskId) throw new McpError(ErrorCode.InvalidRequest,"taskId 为空") }

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/ZH1754629545/dida365-mcp-servers'

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