gitlab_list_merge_requests
List merge requests of a GitLab project, optionally filtered by state (opened, closed, merged, locked, all).
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.
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_path": "<project_path>"
},
"name": "gitlab_list_merge_requests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-based page number. | |
| state | No | Filter by MR state. | opened |
| per_page | No | Items per page (1–100). | |
| project_path | Yes | GitLab project path (e.g. 'my-org/my-repo'). Required by default. For legacy deployments only, set GITLAB_ALLOW_DEFAULT_PROJECT=true to use GITLAB_PROJECT_PATH when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| state | Yes | ||
| project | Yes | ||
| pagination | Yes | ||
| merge_requests | Yes |