Skip to main content
Glama

nworks_task_update

Modify task details like status, title, content, or due date in LINE WORKS. Use to mark tasks complete, update deadlines, or edit task information.

Instructions

할 일을 수정하거나 완료 처리합니다. '할 일 완료 처리해줘', '마감일 변경해줘' 등의 요청에 사용. taskId는 nworks_task_list로 조회 가능. User OAuth 인증 필요 (task + user.read scope)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskIdYes할 일 ID (nworks_task_list로 조회 가능)
statusNo상태 변경: done(완료) 또는 todo(미완료)
titleNo새 제목
contentNo새 내용
dueDateNo새 마감일 (YYYY-MM-DD)

Implementation Reference

  • The implementation of the nworks_task_update tool, including its schema validation and the logic to call taskApi for task completion/incompletion and field updates.
    server.tool(
      "nworks_task_update",
      "할 일을 수정하거나 완료 처리합니다. '할 일 완료 처리해줘', '마감일 변경해줘' 등의 요청에 사용. taskId는 nworks_task_list로 조회 가능. User OAuth 인증 필요 (task + user.read scope)",
      {
        taskId: z.string().describe("할 일 ID (nworks_task_list로 조회 가능)"),
        status: z.enum(["done", "todo"]).optional().describe("상태 변경: done(완료) 또는 todo(미완료)"),
        title: z.string().optional().describe("새 제목"),
        content: z.string().optional().describe("새 내용"),
        dueDate: z.string().optional().describe("새 마감일 (YYYY-MM-DD)"),
      },
      async ({ taskId, status, title, content, dueDate }) => {
        try {
          // 상태 변경
          if (status) {
            if (status === "done") {
              await taskApi.completeTask(taskId);
            } else {
              await taskApi.incompleteTask(taskId);
            }
          }
    
          // 필드 수정
          if (title !== undefined || content !== undefined || dueDate !== undefined) {
            const result = await taskApi.updateTask({ taskId, title, content, dueDate });
            return {
              content: [{ type: "text" as const, text: JSON.stringify({ success: true, taskId: result.taskId, title: result.title, status: result.status, dueDate: result.dueDate }) }],
            };
          }
    
          if (status) {
            return {
              content: [{ type: "text" as const, text: JSON.stringify({ success: true, taskId, status: status === "done" ? "DONE" : "TODO" }) }],
            };
          }
    
          return {
            content: [{ type: "text" as const, text: JSON.stringify({ error: true, message: "status, title, content, dueDate 중 하나 이상을 지정하세요." }) }],
            isError: true,
          };
        } catch (err) {

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/yjcho9317/nworks'

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