Skip to main content
Glama

list_work_package_gitlab_merge_requests

Read-onlyIdempotent

Retrieve all GitLab merge requests linked to a work package in one call. Use it to check integration status, since an empty result may mean no links or no GitLab configuration.

Instructions

List all GitLab merge requests linked to a work package.

Returns every linked merge request in one call -- this endpoint is unpaginated on OpenProject's side (no offset/limit parameters exist). An empty result can mean either no merge requests are linked, or the GitLab integration isn't configured on this instance; OpenProject's API does not distinguish these cases. No single-item get_gitlab_merge_request tool exists because no such endpoint exists upstream -- only this work-package-scoped list.

Input Schema

NameRequiredDescriptionDefault
work_package_idYesWork package id (e.g. 952) or display id (e.g. "PROJ-51"), not the bare number 51.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.4

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations, the description discloses important behavior: the endpoint is unpaginated, an empty result can mean either no links or missing GitLab integration, and there is no single-item alternative upstream. These details materially affect how an agent interprets results.

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

Conciseness5/5

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

The description is front-loaded with the core purpose and then adds only high-value caveats. Each sentence earns its place by clarifying pagination, empty-result ambiguity, or upstream limitations.

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?

It covers the operational context needed to call the tool, including pagination and ambiguous empty results. However, with no output schema, it does not describe the shape of the returned merge request objects, leaving a minor gap.

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 coverage is 100%, and the work_package_id parameter is already well documented in the schema, including the display-id format. The description adds no additional parameter semantics beyond what the schema provides, so the baseline of 3 is appropriate.

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

Purpose5/5

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

The description states a specific verb, resource, and scope: list GitLab merge requests linked to a work package. It clearly distinguishes itself from sibling tools such as list_work_package_github_pull_requests and list_work_package_gitlab_issues by provider and resource type.

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

Usage Guidelines4/5

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

It establishes that this is a work-package-scoped list and explains that no single-item GitLab merge request tool exists because no upstream endpoint exists. It does not explicitly state when not to use it or name sibling alternatives, but the usage context is clear.

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