Skip to main content
Glama
github-fetcher

github-fetcher

by KurvCygnus

GitHub release diff

github_release_diff
Read-onlyIdempotent

Compare two refs in a GitHub repository for release diffs, returning ahead/behind counts, commits, changed files, patches, and truncation flags.

Instructions

Compares two refs in one repository for a release diff, one core call: ahead/behind counts, total commits from ahead_by, up to 100 changed files with patches capped at 4000 bytes, and an optional projected commit list (include_commits defaults to true). total_files reports the full diff size; commits_truncated and files_truncated mark real cuts; each ref is URI-escaped. Returns {repo, from, to, status, ahead_by, behind_by, total_commits, commits, commits_truncated, total_files, files, files_truncated, meta}.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repo": "<repo>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "github_release_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesHead ref (branch, tag or sha) at the comparison end
fromYesBase ref (branch, tag or sha) at the comparison start
repoYesRepository in owner/name form
freshNoBypass the local cache
include_commitsNoInclude the projected commit list, default true; false omits commits but keeps commits_truncated

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds real operational detail those annotations cannot supply: a 100-file cap, per-file patches capped at 4000 bytes, truncation flags that 'mark real cuts', a `fresh` cache-bypass hint via the schema, and URI escaping of refs. Auth requirements, rate limits and error behavior remain unstated.

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 purpose and the key caps are front-loaded, and the trailing return-field list is justified because there is no output schema. It is dense but nearly every clause carries information; 'total commits from ahead_by' is the one slightly cryptic phrase.

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

Completeness4/5

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

With no output schema, spelling out the returned fields (counts, truncation booleans, total_files, meta) is valuable, and the caps/truncation semantics are exactly the kind of thing an agent needs to interpret results correctly. It stops short of explaining caching behavior for `fresh` or how failures surface, which keeps it from a 5.

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 all five parameters are already documented, including the include_commits default and its effect. The description largely restates that behavior; only 'each ref is URI-escaped' adds genuinely new input-handling information, which is not enough to raise the baseline much above 3.

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 uses a specific verb and resource ('Compares two refs in one repository for a release diff') and frames it as 'one core call', so the agent can tell what it does. It does not differentiate the tool from likely near-neighbor siblings such as github_compare_refs or github_compare_repos, leaving that distinction implicit.

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?

'for a release diff' hints at the intended scenario, but the description never says when to call this instead of the compare/release alternatives in the catalog, nor when not to call it. Guidance is implied rather than stated.

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