Skip to main content
Glama

List merge requests

gitlab_list_merge_requests
Read-only

List merge requests for any project, group, or the whole GitLab instance, with filters for state, labels, authors, branches, and more.

Instructions

Lists merge requests for a project, a group, or the whole instance (omit both ids) with the usual filters.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
wipNoFilter draft MRs
pageNoPage number (default 1)
sortNo
limitNoCap for all_pages (default 500)
scopeNo
stateNo
labelsNo
searchNo
group_idNoList MRs of a group instead of a project
order_byNo
per_pageNoItems per page, max 100 (default 20)
all_pagesNoFollow pagination and return up to `limit` items across pages
milestoneNo
project_idNoProject id or URL-encoded path, e.g. `42` or `group/subgroup/project`. Falls back to GITLAB_PROJECT_ID.
created_afterNo
source_branchNo
target_branchNo
updated_afterNo
author_usernameNo
assignee_usernameNo
reviewer_usernameNo
Behavior4/5

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

Annotations already mark readOnly=true and destructive=false; description adds non-obvious behavior that omitting both ids covers the whole instance, and mentions the usual filters. This contextualizes the action without contradicting annotations.

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?

Single sentence, front-loaded with action and scope. No redundant information.

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?

For a tool with 21 parameters and no output schema, the description is sparse. It explains the high-level scope but leaves many filter semantics, input formats, and return behavior unspecified, making it hard for an agent to use correctly without prior GitLab knowledge.

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?

Only 33% of parameters have schema descriptions, and the description adds minimal parameter semantics beyond 'usual filters'. It highlights the scope selection (project_id/group_id) but leaves 14 parameters unexplained, so it fails to compensate for the low 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?

Clearly states the action (lists merge requests) and the target resources (project, group, or instance). Distinct from sibling get_merge_request which fetches a specific MR.

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?

Provides context on when to use (for listing at different scopes) but does not explicitly mention alternatives or exclusions. Sibling tools like get_merge_request imply a single-MR use case but are not referenced.

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/amalychev/gitlab-mcp'

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