Skip to main content
Glama

Update Issue Description Patch

gitlab_update_issue_description_patch

Update a GitLab issue description by applying a search/replace or unified diff patch, avoiding the need to send the full replacement text.

Instructions

Apply a search/replace or unified diff patch to an issue description without sending the full replacement text.

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": {
      "issue_iid": "<issue_iid>",
      "patch_type": "<patch_type>",
      "patch": "<patch>"
    },
    "name": "gitlab_update_issue_description_patch"
  }
}

Input Schema

NameRequiredDescriptionDefault
patchYes
dry_runNo
issue_iidYes
patch_typeYes
project_idNo
create_noteNo
allow_multipleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.7.0
    • removedInput schema / properties / allow_multiple / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / allow_multiple / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / create_note / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / create_note / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / dry_run / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / dry_run / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
  2. First observedv1.6.1

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already declare a mutating, non-idempotent, non-destructive, open-world operation, so the safety profile is partly covered. The description adds only the mechanism and the motivation of avoiding full text; it does not explain failure behavior if the patch does not match, whether the description is replaced in place, what dry_run does, or what create_note and allow_multiple control.

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?

A single front-loaded sentence with no wasted wording. It is efficient, though its brevity contributes to the gaps elsewhere rather than being a pure strength.

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?

This is a multi-mode mutation tool with 7 parameters, no output schema, and no parameter descriptions in the schema, so the description needs to do heavy lifting. One sentence about the patch mechanism is not enough to cover the option parameters, failure modes, or the relationship to the full-update sibling.

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% and there are 7 parameters, so the description must carry parameter meaning. It only maps the two patch_type enum values via the phrase 'search/replace or unified diff'; patch, issue_iid, project_id, dry_run, create_note, and allow_multiple are left entirely undocumented.

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 states a specific verb and resource (apply a patch to an issue description) and notes the key mechanism (search/replace or unified diff) plus the benefit (no full replacement text). It implies contrast with a full-replacement sibling like gitlab_update_issue but does not name it, so an agent must infer the distinction.

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 explicit when-to-use guidance, no when-not-to-use, and no named alternative. The agent must infer that this is preferable to a full update when only a small edit is needed, and nothing says when to choose search_replace versus unified_diff or when to use dry_run.

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