User Merge Requests
get_user_merge_requestsFind merge requests authored by or assigned to a user. Filter by state, project, and paginate to get complete results from GitLab.
Instructions
Get merge requests for a specific user (as author or assignee) - uses proper GraphQL filtering
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Whether to find MRs authored by or assigned to the user | author |
| after | No | Pagination cursor. To fetch the next page, pass the previous response pageInfo.endCursor here and repeat until pageInfo.hasNextPage is false. Paginating this way is the reliable path to complete results and accurate totals. | |
| first | No | Number of merge requests to retrieve | |
| state | No | Filter by MR state (opened, closed, merged, all) | opened |
| fetchAll | No | Fetch multiple pages in one call, up to "first" items total (max 100) — NOT exhaustive. For complete results or accurate counts, leave this false and paginate via after (pageInfo.endCursor). | |
| username | Yes | Username to find merge requests for (e.g., "cdhanlon") | |
| projectPath | No | Optional: limit search to a specific project | |
| userCredentials | No | Your GitLab credentials (optional — falls back to the configured env token if not provided) |