Skip to main content
Glama
Wulnut
by Wulnut

batch_update_tasks

Batch update work item fields for single or multiple issues, including name, priority, status, assignee, and custom fields, to keep project data current without per-item edits.

Instructions

批量更新工作项字段(支持单个或多个工作项)。

Args:
    issue_ids: 要更新的工作项 ID 列表。
    issue_id: 单个工作项 ID(与 issue_ids 二选一,方便单项操作)。
    project: 项目标识符(名称或 Key)。
    work_item_type: 工作项类型名称。
    name: 新标题。
    priority: 新优先级(如 P0, P1, P2)。
    description: 新描述。
    status: 新状态。
    assignee: 新负责人(姓名或邮箱)。
    field_name: 自定义字段名称,需配合 field_value 使用。
    field_value: 自定义字段值。
    user_key: (可选) 飞书用户标识符 (X-USER-KEY),用于以特定用户身份进行操作。

Returns:
    JSON 格式结果,包含 success 状态和后台任务 ID 列表。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
statusNo
projectNo
assigneeNo
issue_idNo
priorityNo
user_keyNo
issue_idsNo
field_nameNo
descriptionNo
field_valueNo
work_item_typeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.2

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It discloses the asynchronous nature via '后台任务 ID 列表' (background task ID list) and the identity-switching capability via user_key (X-USER-KEY). However, it does not state whether updates are partial/patch-style, how per-item failures are reported, or whether the operation is reversible.

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 docstring is front-loaded with the purpose statement, followed by a clean Args list and a Returns note. It is verbose, but every line earns its place given the 0% schema coverage — the parameter list is necessary documentation rather than padding.

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?

For a 12-parameter mutation tool with zero annotations, the description covers parameter semantics and return shape well. It falls short on resolving sibling choice (update_task is a near-duplicate for single items) and on clarifying partial-update semantics — gaps that matter because the schema marks zero parameters as required.

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

Parameters5/5

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

Schema description coverage is 0%, and the description fully compensates: it documents all 12 parameters, including value formats (project by name or Key, priority examples like P0/P1/P2, assignee by name or email) and the dependency relationship between field_name and field_value. This adds substantial meaning that the bare schema entirely lacks.

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

Purpose4/5

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

The description opens with a specific verb-resource statement — '批量更新工作项字段' (batch update work item fields) — and clarifies the scope as single or multiple work items. This functionally differentiates it from singular siblings like update_task, though it never names the sibling explicitly.

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

Usage Guidelines3/5

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

There is no explicit when-to-use or when-not-to-use guidance relative to sibling tools such as update_task or transition_task_status; usage context is only implied by the 'batch' designation. The only concrete usage guidance present is parameter-level — issue_id and issue_ids are flagged as mutually exclusive (二选一), which helps invocation but not tool selection.

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