get_pull_request
Fetch a single pull request and its discussion comments by specifying the repository owner, name, and pull request number.
Instructions
Get a single pull request by number, including its discussion comments.
Mirrors :func:gitea_mcp.tools.issues.get_issue's shape: returns the full
Gitea PullRequest object with an additional comments_list field
containing the issue-style comment thread. Inline review comments (those
attached to specific diff lines) are NOT included — those live under
/pulls/{n}/reviews and are out of scope for this tool.
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>",
"pull_number": "<pull_number>"
},
"name": "get_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Repository owner | |
| repo | Yes | Repository name | |
| pull_number | Yes | Pull request number (the #N in the URL) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||