Get GitHub PR Details
get_github_prRetrieves detailed GitHub pull request information, including live PR status, and auto-detects owner/repo from the current git repository to avoid incorrect inputs.
Instructions
Get detailed information about a specific GitHub pull request, including live prStatus. IMPORTANT: Do NOT guess owner/repo values - leave them empty to auto-detect from the current git repository.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_github_pr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | LEAVE EMPTY to auto-detect from git | |
| owner | No | LEAVE EMPTY to auto-detect from git | |
| pr_number | No | ||
| use_test_db | No | ||
| truncate_body | No | Max characters for body text (0 = full body, default 800). Reduces token usage. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Error code (e.g. VALIDATION_ERROR, INTERNAL_ERROR) | |
| repo | No | ||
| error | No | Human-readable error message | |
| owner | No | ||
| details | No | Additional error context | |
| category | No | Error category (validation, query, connection, internal) | |
| suggestion | No | Suggested fix for the error | |
| instruction | No | ||
| pullRequest | No | ||
| recoverable | No | Whether the error is recoverable | |
| detectedRepo | No | ||
| detectedOwner | No | ||
| aggregated_errors | No | Details of individual errors in a multi-step operation | |
| requiresUserInput | No |