get_pull_request
Get detail for a pull request. By default returns compact metadata only (no diff text). Pass include_diff=true to fetch the unified diff, capped at max_bytes (default 32 KB). When truncated, diff_truncated=true is returned along with diff_bytes_returned and diff_bytes_available so callers can decide whether to fetch more via the diff tool with a scoped path.
read-only · idempotent
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
project_name | Annotated[str, Field(description='Name of the Bridge Town project.')] | Yes | — | |
pull_request_id | Annotated[int, Field(description='Numeric ID of the pull request within the project.')] | Yes | — | |
include_diff | Annotated[bool, Field(description='Whether to fetch and return the unified diff. Defaults to false. Set to true to include diff text (capped at max_bytes).')] | No | False | |
max_bytes | Annotated[int, Field(description='Maximum bytes of diff text to return when include_diff=true. Defaults to 32768 (32 KB). Clamped to [1024, 524288]. When exceeded, diff_truncated=true is set.')] | No | _DIFF_DEFAULT_MAX_BYTES | |
include_financial_delta | Annotated[bool, Field(description='Whether to compute and attach a financial delta (scenario impact). Defaults to false. When true, runs the project on both PR branches and returns financial_delta and significance in the response. Fails open: compute errors set financial_delta.error without blocking the base response.')] | No | False |
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.