list_pull_requests
Retrieve and filter pull requests from a GitHub repository to monitor code changes, review contributions, and manage development workflows.
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 |
|---|---|---|---|
| owner | Yes | Repository owner | |
| repo | Yes | Repository name | |
| state | No | PR state (open, closed, all) | open |
| sort | No | Sort by (created, updated, popularity, long-running) | created |
| direction | No | Sort direction (asc, desc) | desc |
| base | No | Filter by base branch name | |
| head | No | Filter by head branch (format: user:branch) | |
| per_page | No | Results per page (max 100) | |
| page | No | Page number |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |