github_pulls_list
List pull requests and filter by state, base branch, or head user:branch to find relevant PRs for GitHub and Linear dev workflows.
Instructions
List pull requests. Filter by state, by base branch, or by head in the form 'user:branch'.
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_pulls_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Filter pulls by base branch name. Example: `gh-pages`. | |
| head | No | Filter pulls by head user or head organization and branch name in the format of `user:ref-name` or `organization:ref-name`. | |
| page | No | The page number of the results to fetch. Defaults to 1. | |
| repo | Yes | The name of the repository without the `.git` extension. The name is not case sensitive. | |
| sort | No | What to sort results by. Defaults to `created`. | created |
| owner | Yes | The account owner of the repository. The name is not case sensitive. | |
| state | No | Either `open`, `closed`, or `all` to filter by state. Defaults to `open`. | open |
| perPage | No | The number of results per page (max 100). Defaults to 30. | |
| direction | No | The direction of the sort. Default: `desc` when sort is `created` or not specified, otherwise `asc`. |