Skip to main content
Glama

Update Work Item

gitlab_update_work_item

Update a GitLab work item's title, description, labels, assignees, state, status, hierarchy, linked items, custom fields, dates, milestone, iteration, and incident metadata by IID.

Instructions

Update a work item title, description, labels, assignees, state, status, hierarchy, linked items, custom fields, dates, milestone, iteration, and incident metadata.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "iid": "<iid>"
    },
    "name": "gitlab_update_work_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
iidYes
titleNo
statusNo
weightNo
due_dateNo
severityNo
add_labelsNo
parent_iidNo
project_idNo
start_dateNo
descriptionNo
state_eventNo
confidentialNo
iteration_idNo
milestone_idNo
custom_fieldsNo
health_statusNo
remove_labelsNo
remove_parentNo
children_to_addNo
escalation_statusNo
parent_project_idNo
assignee_usernamesNo
children_to_removeNo
linked_items_to_addNo
linked_items_to_removeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed21 schema fields changedv1.7.0
    • removedInput schema / properties / confidential / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / confidential / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • changedInput schema / properties / custom_fields / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "properties": {
      -        "custom_field_id": {
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "date_value": {
      -          "anyOf": [
      -            {
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        },
      -        "number_value": {
      -          "anyOf": [
      -            {
      -              "type": "number"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        },
      -        "selected_option_ids": {
      -          "anyOf": [
      -            {
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        },
      -        "text_value": {
      -          "anyOf": [
      -            {
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        }
      -      },
      -      "required": [
      -        "custom_field_id"
      -      ],
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "properties": {
      +        "custom_field_id": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "date_value": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "number_value": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "selected_option_ids": {
      +          "anyOf": [
      +            {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "text_value": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "custom_field_id"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / description / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / description / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / due_date / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / due_date / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / iteration_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / iteration_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / milestone_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / milestone_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / remove_parent / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / remove_parent / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / start_date / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / start_date / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / status / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / status / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / title / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / title / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / weight / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / weight / type
      Added value: +[
      +  "number",
      +  "null"
      +]
  2. First observedv1.6.1

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare readOnly=false, destructive=false, idempotent=false, openWorld=true, so safety basics are covered. The description adds no behavioral context of its own: it does not explain whether omitted fields are left untouched, how add_labels/remove_labels interact, or what state_event=close does to a work item. It also stays silent on removal-style operations (remove_parent, children_to_remove, remove_labels) that sit uneasily with destructiveHint=false.

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

Conciseness3/5

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

A single front-loaded sentence with the verb+resource first, which is structurally sound. However, the trailing field list is a long undifferentiated enumeration that has low informational yield per word, since most of those names are already in the schema.

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

Completeness2/5

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

For a 26-parameter mutation tool with no output schema and no parameter documentation, this one-line description is far too thin. An agent needs to know which parameters are mutually exclusive, what the null vs omitted distinction means, and what a successful update returns.

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

Parameters2/5

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

Schema description coverage is 0% across 26 parameters, so the description carries the full burden and does not meet it. It restates field names that are already visible in the schema but never explains the tricky semantics: add_labels vs remove_labels, state_event vs status, parent_iid vs parent_project_id, or the custom_fields object shape.

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?

"Update a work item" gives a specific verb and resource, and the field enumeration (title, description, labels, assignees, state, hierarchy, dates, custom fields, incident metadata) confirms the scope is broad in-place modification. It does not distinguish itself from siblings such as gitlab_update_issue, gitlab_move_work_item, or gitlab_convert_work_item_type, so the agent gets no routing help.

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

Usage Guidelines2/5

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

There is no statement of when to use this vs gitlab_move_work_item (hierarchy moves), gitlab_convert_work_item_type, or gitlab_update_issue, even though those overlap conceptually. No prerequisites, permissions, or partial-update expectations are given.

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

Deploy Server

Other Tools