Skip to main content
Glama

get_pull_request

Read-only

Fetch full metadata for a single pull request by providing repo and PR ID, with automatic workspace resolution.

Instructions

Returns full metadata for a single pull request. Requires repo and pr_id, and resolves workspace via the standard precedence.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoYes
pr_idYes
workspaceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already cover read-only and non-destructive behavior. The description adds useful context about workspace resolution via "standard precedence," but that phrase is not explained. It does not contradict the annotations.

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?

Two sentences with no filler. The core purpose is front-loaded and the required-argument/workspace behavior is stated compactly. Each sentence contributes useful information.

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

Completeness3/5

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

The tool is simple and annotations cover safety, but with no output schema the phrase "full metadata" is not elaborated. The undefined "standard precedence" is also a gap that could leave an agent unsure how workspace is resolved.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must carry the parameter-semantics burden. It names repo and pr_id as required and mentions workspace resolution, but it does not clarify the meaning or format of repo, what "standard precedence" means, or how workspace behaves when omitted. This is insufficient given the empty schema descriptions.

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 states a specific verb and resource: "Returns full metadata for a single pull request." This clearly distinguishes it from list-level tools like list_pull_requests and from related sub-resource tools like get_pr_commits or get_pr_diff.

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

Usage Guidelines3/5

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

The description implies this tool is for fetching one pull request's metadata, and it mentions required arguments, but it does not explicitly state when to prefer this over siblings or when not to use it. There are no stated exclusions or alternative routing cues.

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