Skip to main content
Glama

MCPlanManager

addTask

Add a new task to the current plan, specifying its name, dependencies, reasoning, and optional insertion point within the task list using MCPlanManager.

Instructions

向当前计划中动态添加一个新任务。

Args: name (str): 新任务的名称,应确保唯一性。 dependencies (List[int]): 新任务所依赖的任务ID的整数列表 (从0开始)。 reasoning (str): 解释为何要添加此任务的字符串。 after_task_id (int, optional): 一个任务ID,新任务将被插入到该任务之后。如果省略,则添加到列表末尾。

Returns: ToolResponse[TaskOutput]: 包含新创建任务的响应对象。

Input Schema

NameRequiredDescriptionDefault
after_task_idNo
dependenciesYes
nameYes
reasoningYes

Input Schema (JSON Schema)

{ "properties": { "after_task_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "After Task Id" }, "dependencies": { "items": { "type": "integer" }, "title": "Dependencies", "type": "array" }, "name": { "title": "Name", "type": "string" }, "reasoning": { "title": "Reasoning", "type": "string" } }, "required": [ "name", "dependencies", "reasoning" ], "type": "object" }
Install Server

Other Tools from MCPlanManager

Related Tools

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/donway19/MCPlanManager'

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