github_list_prs
List pull requests in a GitHub repository, with optional filters for state, base branch, and sorting, to quickly locate relevant PRs for review or tracking.
Instructions
List pull requests in a repository with optional filters for state, base branch, and sorting
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": {
"owner": "<owner>",
"repo": "<repo>"
},
"name": "github_list_prs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Filter by base branch (e.g., "main") | |
| page | No | Page number | |
| repo | Yes | Repository name | |
| sort | No | Sort by field | updated |
| owner | Yes | Repository owner (organization or username) | |
| state | No | Filter by PR state | all |
| per_page | No | Results per page (max 100) | |
| direction | No | Sort direction | desc |