Skip to main content
Glama
saidsef

GitHub PR Issue Analyser

by saidsef

Github Get Latest Sha

github_get_latest_sha
Read-only

Fetch the SHA of the newest commit on a branch, tag, or default branch for release and PR analysis workflows.

Instructions

Fetches the SHA of the newest commit on ref, or on the default branch when ref is omitted. Returns None if the repository has no commits. The answer is a reading rather than a pin, so a push landing afterwards moves it.

Workflow and conventions: github_get_skill('release-management').

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNoBranch, tag or SHA to read the newest commit of. Omit for the default branch
repo_nameYes
repo_ownerYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv42.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish read-only and open-world behavior; the description goes beyond by disclosing the no-commits edge case (returns None) and the race/re-reading caveat that a later push changes the result. This is useful behavioral information not present in the structured fields. No contradiction with 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 core behavior is stated in two short front-loaded sentences, and the workflow pointer is a compact convention hint. There is no filler or redundant elaboration.

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 of a commit SHA, the description covers the dynamic nature of the result, the default-branch behavior, and the no-commits edge case, while the output schema covers the return shape and annotations cover safety. Missing auth or rate-limit details are not significant for this low-complexity tool.

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?

Only ref has a schema description, so coverage is low, and the description mostly restates ref's schema semantics without adding new detail. repo_owner and repo_name are left to their names and are not clarified. Thus the description does not compensate for the undocumented parameters.

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?

States a specific action and resource: it fetches the SHA of the newest commit, with explicit fallback to the default branch when ref is omitted. The behavior is precise enough to distinguish it from the sibling GitHub tools, even though no sibling is named. It is not a tautology or vague.

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 gives clear context for when to call it: to read the newest commit SHA on a ref or default branch, and notes the result is ephemeral rather than a stable pin. It also points to a release-management skill for workflow conventions. It lacks explicit alternatives or exclusion wording, but the intended use case is evident.

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