Skip to main content
Glama

gitlab_list_merge_requests

Read-onlyIdempotent

Retrieve merge requests from a GitLab project with optional filtering by state (opened, closed, merged, locked, or all). Use to monitor MR status and manage code review workflows.

Instructions

List merge requests of a project, optionally filtered by state.

Examples: - "What MRs are open right now" → default (state='opened') - "What merged last week" → state='merged' then filter by updated_at client-side - "Everything regardless of state" → state='all' - Don't use when you have an MR IID — use gitlab_get_merge_request for detail.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stateNoFilter by MR state.opened
per_pageNoItems per page (1–100).
pageNo1-based page number.
project_pathNoGitLab project path (e.g. 'my-org/my-repo'). When omitted, the default from GITLAB_PROJECT_PATH env var is used.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectYes
stateYes
countYes
paginationYes
merge_requestsYes
Behavior3/5

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

Annotations already provide readOnlyHint=true, destructiveHint=false, idempotentHint=true, and openWorldHint=true, covering the safety profile. The description adds useful context about default filtering behavior (state='opened') and client-side filtering suggestions, but doesn't disclose pagination behavior or rate limits beyond what's in the schema. With annotations covering core behavioral traits, this earns a baseline 3.

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 efficiently structured with a clear purpose statement followed by practical examples and an explicit usage boundary. Every sentence serves a purpose: the first states what the tool does, the examples show when to use it, and the final sentence tells when not to use it. No wasted words.

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

Completeness5/5

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

Given the tool's moderate complexity (list operation with filtering), rich annotations covering safety and behavior, 100% schema coverage, and the existence of an output schema, the description is complete. It provides the essential context needed to select and use the tool correctly, including sibling differentiation and practical examples.

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 fully documents all four parameters. The description provides example usage patterns that illustrate how the 'state' parameter works in practice, but doesn't add significant semantic information beyond what's in the schema. This meets the baseline 3 for high schema coverage.

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 clearly states the tool's purpose: 'List merge requests of a project, optionally filtered by state.' It specifies the verb ('list'), resource ('merge requests'), and scope ('of a project'), and distinguishes it from sibling gitlab_get_merge_request by noting that tool is for detailed views when an MR IID is known.

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

Usage Guidelines5/5

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

The description provides explicit guidance on when to use this tool versus alternatives. It gives three concrete examples of when to use it (open MRs, merged last week, everything regardless of state) and explicitly states 'Don't use when you have an MR IID — use gitlab_get_merge_request for detail,' naming the specific alternative tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mshegolev/gitlab-ci-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server