Skip to main content
Glama

list_pull_requests

Read-only

List pull requests in a repository with filtering by state and sorting options. Returns detailed PR objects including head, base, and mergeable status.

Instructions

List pull requests in a repository, optionally filtered by state.

Returns Gitea PullRequest objects (not Issue-style — the PR endpoint returns richer head/base/mergeable info than the issues endpoint does even when issues are filtered to type=pulls).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerYesRepository owner
repoYesRepository name
stateNoFilter by state: 'open', 'closed', or 'all'open
sortNoSort order: 'oldest', 'newest', 'leastupdate', 'mostupdate', 'leastcomment', 'mostcomment', 'priority'. Omit for Gitea's default.
pageNoPage number (1-indexed)
limitNoItems per page (max 50)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description explains that the returned objects are Gitea PullRequest objects with richer information, which adds behavioral context beyond the readOnlyHint and openWorldHint annotations. It does not contradict annotations (readOnlyHint=true indicates read-only, description says list). The pagination behavior is left to schema, but the return type difference is disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences with no unnecessary words. The first sentence states the core purpose, and the second adds a critical distinction. Every sentence earns its place, and the structure is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the output schema exists (not shown) and schema coverage is 100%, the description is nearly complete. It addresses the return type difference and optional filtering, though it could mention default sort order or pagination behavior more explicitly. Still, it adequately covers the tool's context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Since schema coverage is 100%, the description does not need to repeat parameter details. It adds value by explaining the return type difference, which is related to the overall behavior rather than individual parameters. Baseline 3 is appropriate as the description provides some additional context but not per-parameter enrichment.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action 'List pull requests in a repository' with an optional filter parameter, distinguishing it from siblings like get_pull_request (single PR) and list_issues (which returns different objects). The added note about Gitea PullRequest objects versus Issue-style provides a specific differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies that when richer head/base/mergeable info is needed, this tool is preferable over list_issues with type=pulls. However, it does not explicitly state when not to use it or compare to get_pull_request. It provides clear context for when to use this endpoint over alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

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/werebear73/gitea-mcp'

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