Skip to main content
Glama

update_merge_request

Update a GitLab merge request's title, description, state, target branch, milestone, or labels using the project ID and merge request IID.

Instructions

Update MR title, description, state (close/reopen), target branch, milestone, or labels

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleNoUpdated MR title
labelsNoSet labels (replaces existing)
add_labelsNoAdd labels
project_idYesProject numeric ID (e.g. 31) or namespace path (e.g. 'group/project-name'). URL-encoding is handled automatically.
descriptionNoUpdated MR description
state_eventNoClose or reopen the merge request
milestone_idNoMilestone ID (0 to unassign)
remove_labelsNoRemove labels
target_branchNoChange destination target branch
milestone_titleNoMilestone title to associate
merge_request_iidYesMerge request IID (e.g. 5 for !5)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It implies mutation but does not disclose permission requirements, whether unspecified fields are left untouched, whether close/reopen is reversible, or what the response looks like. For an 11-parameter mutation tool this is a significant gap.

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 words that quickly tells the agent the tool's scope. It is appropriately sized for a definition that leans on a fully documented schema.

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?

With 100% schema coverage and no output schema, the field-level detail is adequately covered. However, as a mutation tool with zero annotations, the definition omits behavioral context (auth, partial-update semantics, side effects) that an agent needs to invoke it confidently.

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 description coverage is 100%, so the schema already documents each parameter (including the labels-replaces-existing vs add_labels/remove_labels distinction and milestone_id=0 to unassign). The description merely repeats the field names and adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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?

States a specific verb (Update) and resource (MR) and enumerates the mutable fields (title, description, state, target branch, milestone, labels). It is clearly distinguishable from siblings like accept_merge_request or create_merge_request, though it does not explicitly name a sibling to contrast against.

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 tool versus alternatives (e.g., accept_merge_request, update_merge_request_discussion_note) and no prerequisites such as required permissions or MR state. The field list only implies that it modifies an existing MR.

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