Skip to main content
Glama

GitHub commits and comparisons

gh_commits
Read-onlyIdempotent

List commits (of a branch, or touching a path), show one commit with its changes (sha), or compare two branches, tags or commits (base and head) with the changed files and their diffs.

Input Schema

NameRequiredDescriptionDefault
shaNo
baseNo
headNo
pathNo
repoYesowner/name, like shopwhizzy/client-shop (or a GitHub address).
limitNo
branchNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds genuine value by stating that comparisons return changed files and their diffs, but it says nothing about pagination (the limit parameter), rate limits, or how large diffs are handled.

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?

A single front-loaded sentence with no filler; each parenthetical clause earns its place by tying a parameter to a behavior. The density is high but still readable, with only minor loss from not breaking the three modes apart.

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?

For a seven-parameter tool with no output schema and low schema coverage, the description is adequate on mode selection and output shape ('changed files and their diffs'). It is incomplete on result limits/pagination and on the repo format, so it falls short of fully self-sufficient.

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 only 14% (repo alone), so the description carries most of the burden: it correctly maps sha, base, head, branch and path to their roles. It leaves limit and repo unexplained in the description, so two of seven parameters have no textual semantics anywhere in the description.

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

Purpose4/5

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

The description enumerates three concrete operations (list commits, show one commit with changes, compare base..head) with their key parameters, so the scope is unmistakable. It does not explicitly distinguish itself from the close sibling gh_commit, leaving the deduplication for the agent to infer from the wording.

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 parenthetical groupings (branch/path, sha, base and head) effectively tell the agent which parameter selects which mode, which is useful implied routing. However, there is no explicit when-to-use/when-not-to-use guidance or reference to alternatives such as gh_commit or gh_branch, so the agent must guess at the boundary.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources