Skip to main content
Glama

getPullRequestCommits

Read-onlyIdempotent

Retrieve paginated commits for a pull request. Pass owner, repo, and pull number to get the commit list.

Instructions

List the commits of a pull request. Supports page/per_page.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo1-based page number
repoYesRepository name
ownerYesRepository owner
per_pageNoItems per page
pull_numberYesPull request number

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, idempotentHint=true, and destructiveHint=false. The description adds pagination support ('Supports page/per_page') as an extra behavioral trait, but does not disclose details like ordering or response format. No contradiction with 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?

The description is a single, front-loaded sentence that wastes no words. It states the action and the sole behavioral note (pagination) efficiently.

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?

For a simple read-only list endpoint, the description covers the action, the target resource, and the pagination options. Combined with complete parameter descriptions and safety annotations, nothing essential is missing for an agent to invoke this tool correctly.

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 description coverage is 100%, so each of the five parameters already has a description. The tool description adds only that page/per_page are supported, which is minimal value beyond the schema's existing parameter 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 ('List') and resource ('commits of a pull request'), which clearly identifies the tool's action and distinguishes it from sibling tools like getPullRequest, getPullRequestActivity, or getPullRequestDiff. The added pagination note helps clarify the scope.

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 the tool is used when needing the commit list for a pull request, but it does not explicitly state when-not to use it or name alternatives such as getPullRequestDiff or getPullRequestActivity. Usage is left to inference rather than stated.

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