list_pull_requests
List pull requests in a GitHub repository, with optional filters for state, base or head branch, and sorting to find relevant PRs.
Instructions
List pull requests in a 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": {
"owner": "<owner>",
"repo": "<repo>"
},
"name": "list_pull_requests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Optional filter by base branch name | |
| head | No | Optional filter by head user or branch name | |
| repo | Yes | Repository name | |
| sort | No | Optional sorting criteria | created |
| owner | Yes | Repository owner | |
| state | No | Optional state of pull requests to return | open |
| direction | No | Optional sort direction | desc |