list_merge_requests
Retrieve a list of merge requests from a GitLab project with options to filter by state, sort order, and pagination.
Instructions
List merge requests for a GitLab repository.
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_id": "<project_id>"
},
"name": "list_merge_requests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | The project ID or path (e.g., 'username/repo-name') | |
| state | No | State of merge requests (opened, closed, merged, all) | all |
| per_page | No | Number of merge requests to return (max 100) | |
| order_by | No | Order by field (created_at, updated_at, title) | created_at |
| sort | No | Sort order (asc, desc) | desc |