Skip to main content
Glama

get_github_pull_request

Fetch a single GitHub pull request by its ID from OpenProject, returning the mirrored row or an empty result when it does not exist or the integration is unset.

Instructions

Get a single GitHub pull request by its own id.

GitHub pull requests are read-only mirror rows synced by OpenProject's own GitHub App integration -- never creatable via this API. An empty or 404 result can mean either the pull request doesn't exist, or the GitHub App integration isn't configured on this instance; OpenProject's API does not distinguish these cases.

Unlike work-package-scoped lookups in this domain, this global lookup relies on OpenProject's own visibility check (whether the linked work package is visible to the API token), not on this MCP's OPENPROJECT_READ_PROJECTS allowlist -- the pull request payload carries no project link for this MCP to check against.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
github_pull_request_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
bodyYes
draftYes
stateYes
titleYes
authorYes
labelsYes
mergedYes
numberYes
html_urlYes
merged_atYes
merged_byYes
created_atYes
repositoryYes
updated_atYes
body_lengthYes
body_truncatedYes
comments_countYes
additions_countYes
deletions_countYes
github_updated_atYes
changed_files_countYes
repository_html_urlYes
review_comments_countYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and meets it: it discloses that PRs are read-only mirror rows that can never be created via this API, that empty/404 results are ambiguous, and that visibility is governed by OpenProject's own check rather than this MCP's OPENPROJECT_READ_PROJECTS allowlist.

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

Conciseness4/5

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

The lead sentence front-loads the purpose and the following paragraphs each earn their place by covering a distinct caveat (read-only, ambiguous 404, visibility model). It is slightly long, but no sentence is pure filler.

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

Completeness5/5

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

An output schema exists so return values need not be explained, and the description supplies the non-obvious operational facts an agent needs: the read-only nature, the unresolvable 404 ambiguity, and the visibility model. Little is missing for a one-parameter lookup.

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?

Schema coverage is 0% for the single integer id parameter, so the schema itself adds nothing. The description contributes only the distinction that this is the pull request's 'own id' rather than a work-package-scoped identifier; it gives no format, range, or source guidance for the value.

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 first sentence gives a specific verb (Get), resource (GitHub pull request), and scope constraint (single, by its own id). No sibling in the list operates on pull requests, so no disambiguation is required, and the 'global lookup' framing further pins down what is fetched.

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?

It clearly explains the retrieval context and the interpretation of results, including that empty/404 is ambiguous between a missing PR and a missing GitHub App integration. It does not state when to prefer a different tool, but no plausible alternative exists in this sibling set.

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