Skip to main content
Glama

GitHub MCP Server

list_pull_requests

List and filter pull requests by owner, repo, state, head, base, sort, direction, per_page, and page, simplifying GitHub repository management and review workflows.

Instructions

List and filter repository pull requests

Input Schema

NameRequiredDescriptionDefault
baseNoFilter by base branch name
directionNoThe direction of the sort
headNoFilter by head user or head organization and branch name
ownerYesRepository owner (username or organization)
pageNoPage number of the results
per_pageNoResults per page (max 100)
repoYesRepository name
sortNoWhat to sort results by
stateNoState of the pull requests to return

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "base": { "description": "Filter by base branch name", "type": "string" }, "direction": { "description": "The direction of the sort", "enum": [ "asc", "desc" ], "type": "string" }, "head": { "description": "Filter by head user or head organization and branch name", "type": "string" }, "owner": { "description": "Repository owner (username or organization)", "type": "string" }, "page": { "description": "Page number of the results", "type": "number" }, "per_page": { "description": "Results per page (max 100)", "type": "number" }, "repo": { "description": "Repository name", "type": "string" }, "sort": { "description": "What to sort results by", "enum": [ "created", "updated", "popularity", "long-running" ], "type": "string" }, "state": { "description": "State of the pull requests to return", "enum": [ "open", "closed", "all" ], "type": "string" } }, "required": [ "owner", "repo" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tuanle96/mcp-github'

If you have feedback or need assistance with the MCP directory API, please join our Discord server