Skip to main content
Glama
vuluu2k
by vuluu2k

markTaskDone

Mark tasks as complete in your knowledge base using task IDs or fuzzy text search. Update task status across sections like today or backlog to track progress.

Instructions

Mark a task as complete. Provide either a taskId (from getTasks) or searchText to fuzzy-match the task.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskIdNoThe task ID (from getTasks output)
textNoText to search for in task titles (fuzzy match)
sectionNoWhich section the task is intoday

Implementation Reference

  • The MCP tool handler for "markTaskDone", which delegates to the brain implementation.
    toolHandler("markTaskDone", async ({ taskId, text, section }) => {
      if (taskId) {
        await brain.markTaskDone(section, taskId);
      } else if (text) {
        await brain.markTaskDoneByText(section, text);
      } else {
        throw new Error("Provide either taskId or text");
      }
      return { success: true };
    })
  • The implementation of markTaskDone in the brain class.
    async markTaskDone(
      section: "today" | "backlog",
      taskId: string
    ): Promise<void> {
      const log = getLogger();
      const brainSection: BrainSection = `tasks/${section}`;
    
      await this.sync.atomicUpdate(
        brainSection,
        (current) => toggleTaskDone(current, taskId, brainSection),
        `feat(ai): mark task done`
      );
      log.info("markTaskDone", { section, taskId });
    }
  • The tool name registration for "markTaskDone".
    "markTaskDone",

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/vuluu2k/knowledge_mcp'

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