Skip to content

list_pull_requests

List pull requests (merge requests) in a project. Requires at least Viewer role. state filter: ‘open’ (default), ‘closed’, or ‘all’. Results are capped at limit (default 25, max 50). When there are more PRs than limit, truncated=true is returned.

read-only · idempotent

NameTypeRequiredDefaultDescription
project_nameAnnotated[str, Field(description='Name of the Bridge Town project.')]Yes
stateAnnotated[Literal['open', 'closed', 'all'], Field(description="Filter by state: 'open' (default), 'closed', or 'all'.")]No'open'
limitAnnotated[int, Field(description='Maximum number of PRs to return. Defaults to 25, clamped to [1, 50]. When the project has more PRs than limit, truncated=true is set.')]No25

Returns a structured object. Top-level fields:

  • project (string)
  • state (string)
  • pull_requests (array<object>)
  • count (integer)

See the response example below for the full payload shape.

{
"name": "list_pull_requests",
"arguments": {
"project_name": "forecasts",
"state": "open"
}
}
{
"project": "forecasts",
"state": "open",
"pull_requests": [
{
"id": 42,
"title": "Aggressive growth scenario",
"head_branch": "scenario/aggressive-growth",
"base_branch": "main",
"state": "open",
"author": "alice@example.com",
"created_at": "2026-04-28T10:00:00+00:00"
}
],
"count": 1
}
  • Module: Pull Requests
  • Requires authentication via API token or Auth0 JWT.