Skip to main content
Glama

Gitlab Graphql Ops Update Merge Request

gitlab_graphql_ops_update_merge_request

Update a GitLab merge request's title, description, or target branch via GraphQL to keep review metadata and branch targeting current.

Instructions

Change a merge request's title, description or target branch through GraphQL.

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": {
      "project_id": "<project_id>",
      "merge_request_iid": "<merge_request_iid>"
    },
    "name": "gitlab_graphql_ops_update_merge_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoNew title.
project_idYesProject id or full path.
descriptionNoNew description.
target_branchNoNew target branch.
merge_request_iidYesMerge request iid.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv27.3.20
    • addedInput schema / properties / description
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "New description."
      +}
    • addedInput schema / properties / merge_request_iid
      Added value: +{
      +  "description": "Merge request iid.",
      +  "type": "integer"
      +}
    • removedInput schema / properties / params_json
      Removed value: -{
      -  "default": "{}",
      -  "description": "JSON string of parameters to pass to the action.",
      -  "type": "string"
      -}
    • addedInput schema / properties / project_id
      Added value: +{
      +  "description": "Project id or full path.",
      +  "type": "string"
      +}
    • addedInput schema / properties / target_branch
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "New target branch."
      +}
    • addedInput schema / properties / title
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "New title."
      +}
    • addedInput schema / required
      Added value: +[
      +  "project_id",
      +  "merge_request_iid"
      +]
  2. First observedv27.3.13

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=false and destructiveHint=false, so the safety profile is covered and the description's 'Change' is consistent. The description adds the fact that only three fields are mutable through this path, but says nothing about required permissions, whether omitted fields stay unchanged, or what happens on an invalid target branch.

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 zero filler that states the resource and the mutable fields up front. The trailing 'through GraphQL' is slightly redundant since the tool name already says graphql, which is the only minor waste.

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

Completeness4/5

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

For a simple five-parameter mutation with full schema coverage and no output schema, the description covers what an agent needs to select and call it. It is not complete on partial-update semantics or permission requirements, but those are the only meaningful gaps given the low tool complexity.

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 all five parameters are already documented in the schema, and the description only repeats the three mutable fields, adding no format or constraint detail. With the schema doing the heavy lifting, the baseline 3 is appropriate.

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 gives a specific verb ('Change') plus resource ('a merge request') and enumerates the mutable fields (title, description, target branch), which distinguishes it from create_merge_request and delete_merge_request among the siblings. It stops short of naming a sibling alternative explicitly, so it is clear but not maximally differentiated.

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?

Usage is only implied: the agent can infer this is the tool for editing MR metadata, but there is no explicit guidance on when to prefer it over siblings such as gitlab_merge_request_level_approvals or the generic gitlab_graphql tool. No exclusions or preconditions are stated.

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