list_pull_requests
Retrieve pull requests from GitHub or GitLab repositories with filters for state, branches, labels, and search terms to manage code review workflows.
Instructions
List pull requests (merge requests in GitLab) with optional filters
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": {
"repo": "<repo>"
},
"name": "list_pull_requests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository identifier (GitLab: "group/project" or ID, GitHub: "owner/repo") | |
| state | No | Filter by state | |
| source_branch | No | Filter by source branch | |
| target_branch | No | Filter by target branch | |
| labels | No | Filter by labels | |
| search | No | Search in title and description | |
| sort | No | Sort field | |
| direction | No | Sort direction | |
| page | No | Page number (default: 1) | |
| per_page | No | Items per page (default: 20, max: 100) |