Skip to main content
Glama

clear_task

Removes existing task data to reset the task management system, enabling a fresh start on the Divide and Conquer MCP Server for streamlined task breakdown and progress tracking.

Instructions

Clears the current task data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that clears the current task by overwriting the config file with the default empty task data and returns a success message.
    private async clearTask(): Promise<any> { try { // Write the default task data to the file await this.writeTaskData({ ...DEFAULT_TASK_DATA }); return { content: [ { type: 'text', text: 'Task cleared successfully.', }, ], }; } catch (error) { console.error('Error clearing task:', error); return { content: [ { type: 'text', text: `Error clearing task: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } }
  • The input schema and metadata for the 'clear_task' tool, which takes no parameters.
    { name: 'clear_task', description: 'Clears the current task data.', inputSchema: { type: 'object', properties: {}, required: [] } },
  • src/index.ts:448-449 (registration)
    The switch case in the CallToolRequestHandler that registers and dispatches 'clear_task' calls to the handler method.
    case 'clear_task': return await this.clearTask();

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/landicefu/divide-and-conquer-mcp-server'

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