Skip to main content
Glama

Get Merge Request

gitlab_get_merge_request
Read-onlyIdempotent

Retrieve details for a single GitLab merge request by project and merge request IID or source branch, with optional summaries for quick review.

Instructions

Get one merge request.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gitlab_get_merge_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idNo
source_branchNo
include_summariesNo
merge_request_iidNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.7.0
    • removedInput schema / properties / include_summaries / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / include_summaries / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / merge_request_iid / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / merge_request_iid / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observedv1.6.1

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered by structured data. The description adds nothing beyond that — no note on what the response contains, whether it fails when the MR is missing, or what include_summaries does behaviorally.

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?

The single sentence is front-loaded and contains no padding, so there is no waste. But the brevity crosses into under-specification: the one sentence does not carry enough content to count as an efficient summary of a four-parameter retrieval tool.

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?

With no output schema, four undocumented parameters, and no annotations-level supplementation, the description does far too little for the tool's complexity. An agent cannot tell what fields are returned, whether the lookup requires project scoping via project_id, or what role source_branch plays.

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% for four parameters, so the description carries the full burden and gives no parameter information at all. Names like project_id and merge_request_iid are semi-self-explanatory, but source_branch on a single-MR lookup and include_summaries are genuinely ambiguous and go unexplained.

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

Purpose3/5

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

The description names a specific verb and resource ("Get one merge request"), so an agent knows the basic operation. However, it is nearly a restatement of the tool name/title and gives no signal about how it differs from the many adjacent merge-request tools (diffs, discussions, approval state, version), so the agent must infer scope entirely from the name.

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 when-to-use guidance, no mention of prerequisites (project access, MR visibility), and no pointer to alternatives such as the diffs or discussion tools. The only implied usage comes from the word "one", which contrasts weakly with list operations.

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