get_pull_request
Get full detail for a pull request, including the unified diff. Requires at least Viewer role. Returns: id (int) — PR number; title (str); body (str) — PR description; state (str) — open or closed; head_branch / base_branch (str) — source and target branches; author (str) — creator login; created_at / updated_at (str) — ISO timestamps; merged (bool); merged_at (str | null) — merge timestamp when merged; diff (str) — unified diff of all changes in the PR.
read-only · idempotent
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
project_name | str | Yes | — | |
pull_request_id | int | Yes | — |
Returns
Section titled “Returns”Returns a structured object. Top-level fields:
id(integer)project(string)title(string)body(string)head_branch(string)base_branch(string)state(string)author(string)created_at(string)diff(string)
See the response example below for the full payload shape.
Example
Section titled “Example”Tool Call
Section titled “Tool Call”{ "name": "get_pull_request", "arguments": { "project_name": "forecasts", "pull_request_id": 42 }}Response
Section titled “Response”{ "id": 42, "project": "forecasts", "title": "Aggressive growth scenario", "body": "Bumps growth_rate from 10% to 15%.", "head_branch": "scenario/aggressive-growth", "base_branch": "main", "state": "open", "author": "alice@example.com", "created_at": "2026-04-28T10:00:00+00:00", "diff": "diff --git a/model/revenue.py b/model/revenue.py\n@@\n-growth_rate = 0.10\n+growth_rate = 0.15\n"}- Module:
Pull Requests - Requires authentication via API token or Auth0 JWT.