Skip to main content
Glama

saveProjTask

Add a project task or subtask by providing task name, responsible user, and notification type. Prior queries to select project and responsible person are required.

Instructions

新增项目任务或子任务,直接调用 /projTask/saveEntityMap。调用本工具前必须先调用 queryProjProjectList 查询并让用户选择项目,projectId 必须来自项目记录 id;必须先调用 queryDutyList 查询并让用户选择责任人,dutyUserId 和 dutyUserName 必须来自同一条责任人记录。新增子任务时还需要传 parentId,parentId 应来自 queryProjectTask 返回的任务 id。progress 固定为 0,delayDays 固定为 0。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
parentIdNo父任务ID,可选。新增子任务时必填,应来自 queryProjectTask 返回的任务 id;新增顶级任务时不要传。
taskNameYes任务名称。
planHoursNo计划工时,可选。
projectIdYes项目ID。必须来自 queryProjProjectList 返回的项目记录 id。
dutyUserIdYes责任人用户ID。必须来自 queryDutyList 返回的同一条责任人记录 id。
notifyTypeYes通知类型。应使用系统支持的通知类型值,例如 0 或 1。
taskDetailNo任务详情,可选。
planEndDateNo计划结束日期,可选,格式建议为 YYYY-MM-DD。
dutyUserNameYes责任人姓名。必须来自 queryDutyList 返回的同一条责任人记录名称。
planStartDateNo计划开始日期,可选,格式建议为 YYYY-MM-DD。
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries full burden. It discloses that progress and delayDays are fixed to 0, and mentions the underlying API call. However, it does not discuss side effects, authorization requirements, or error conditions, but the detailed prerequisites provide sufficient behavioral context for correct invocation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single paragraph that front-loads the action and then lists prerequisites sequentially. It is concise for the amount of information provided, though slightly run-on. Every sentence adds value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 10 parameters, 5 required, and no output schema, the description covers prerequisite steps and fixed fields. However, it does not explain the return value or error handling, leaving some gaps for the agent regarding what happens after invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so each parameter has a description. The tool description adds overall context about the origin of certain parameters (e.g., from prior queries) but does not add meaning beyond what is already in the schema. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description explicitly states the tool is for adding new project tasks or subtasks, using the verb '新增' (add) and resource '项目任务或子任务' (project task or subtask). It distinguishes itself from sibling tools like updateProjTask and deleteProjTask by focusing on creation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit prerequisites: must call queryProjProjectList first for projectId, queryDutyList for dutyUserId and dutyUserName, and queryProjectTask for parentId when adding subtasks. It also states that progress and delayDays are fixed to 0, giving clear when-to-use guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/guansuian/project-mcp'

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