Skip to main content
Glama
github-fetcher

github-fetcher

by KurvCygnus

GitHub commits

github_commits
Read-onlyIdempotent

List commits on a repository ref with optional path, author, or date filters, returning SHA, message, author, date, and URL to inspect change history.

Instructions

List commits on a ref, optionally filtered by path, author, or date range. Returns short sha, message, author, and date; max_message_chars truncates each message. Returns {items[{sha, short_sha, message, author{name, email, login}, date, url}], page, per_page, has_more, next_page}.

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>"
    },
    "name": "github_commits"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoBranch, tag, or commit; defaults to the repository default branch
pageNoPage number, starting at 1
pathNoOnly commits touching this path
repoYesRepository in owner/name form
firstNoServe the oldest page of the history instead of the newest; combine with path to hunt creation commits
freshNoBypass the local cache
sinceNoISO 8601 lower bound
untilNoISO 8601 upper bound
authorNoGitHub login or email to filter by
per_pageNoItems per page, 1-100, default 20
max_message_charsNoTruncate each commit message to this many UTF-8 bytes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.0
    • addedInput schema / properties / first
      Added value: +{
      +  "description": "Serve the oldest page of the history instead of the newest; combine with path to hunt creation commits",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changedv0.5.0
    • changedInput schema / properties / max_message_chars / description
      Previous value: -"Truncate each commit message to this many characters"New value: +"Truncate each commit message to this many UTF-8 bytes"
  3. Changed2 schema fields changedv0.3.0
    • addedInput schema / properties / max_message_chars
      Added value: +{
      +  "description": "Truncate each commit message to this many characters",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / properties / per_page / description
      Previous value: -"Items per page, default 20"New value: +"Items per page, 1-100, default 20"
  4. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world access, so the safety profile is covered. The description adds genuinely new behavior: default-branch resolution is not stated, but the truncation effect of max_message_chars and the exact envelope (items, page, per_page, has_more, next_page) are disclosed, which matters because no output schema exists.

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?

Two sentences, front-loaded with the primary action before the return shape. The dense brace-notation return block earns its place given no output schema, though it is slightly harder to scan than prose would be.

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?

For an 11-parameter listing tool with no output schema, the description supplies the one thing structure cannot: the response envelope and pagination fields. Remaining gaps (cache semantics, default branch resolution) are covered by the fully described schema, so nothing essential is missing.

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 coverage is 100%, so the schema already explains ref, path, since/until, author, page, per_page, first, and fresh. The description only restates the filter set and notes that max_message_chars truncates messages — and does so as "chars" where the schema says UTF-8 bytes, adding ambiguity rather than clarity. Baseline 3 is correct.

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 verb and resource ("List commits on a ref") plus the filtering dimensions (path, author, date range), which cleanly separates it from the singular github_commit sibling and from history-free tools like github_branches. An agent knows exactly what resource it gets back.

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?

Usage is implied by the filter list rather than stated: there is no explicit "use this when X, use github_commit when Y" routing, no note that `first`/`path` is the creation-commit pattern (that lives only in the schema), and no mention of cache behavior for `fresh`. Adequate but leaves alternatives to inference.

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