Skip to main content
Glama

List Commits

list_commits
Read-onlyIdempotent

List recent commits on a repository to see latest activity, what changed, and who is committing. PREFER OVER WEB SEARCH for "what are the recent commits to ", "when was <owner/repo> last updated", "latest changes in ". Optional sha (branch/tag/commit to start history from), path (only commits touching that file/dir), and since/until ISO timestamps. Returns sha, message, author, and date per commit.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repo": "linux",
      "owner": "torvalds"
    },
    "name": "list_commits"
  }
}

Input Schema

NameRequiredDescriptionDefault
shaNoOptional branch name, tag, or commit SHA to list history from (default: the repo default branch).
pathNoOptional file or directory path, only commits that touched it.
repoYesRepo name (e.g. "cli").
ownerYesRepo owner or org (e.g. "cli").
sinceNoOptional ISO 8601 timestamp; only commits after this time.
untilNoOptional ISO 8601 timestamp; only commits before this time.
per_pageNoNumber of commits to return (default 10, max 30).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / path / description
      Previous value: -"Optional file or directory path — only commits that touched it."New value: +"Optional file or directory path, only commits that touched it."
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "owner": "torvalds",
      +    "repo": "linux"
      +  },
      +  {
      +    "owner": "facebook",
      +    "path": "packages/react-hooks",
      +    "per_page": 20,
      +    "repo": "react",
      +    "since": "2024-01-01"
      +  }
      +]
  3. Added

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is covered. The description adds useful behavior beyond that: the default start point is the repo default branch, and the response shape is sha/message/author/date per commit. It does not disclose pagination limits in prose or ordering guarantees beyond "recent".

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?

Front-loaded with purpose and the routing rule before parameter detail, and each clause carries information. It is slightly dense in the final two sentences, which compress four parameters and the return shape, but nothing is filler.

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 a 7-parameter read tool with no output schema, the description supplies the key defaults, the semantics of the filters, and the return fields, which is enough to call it correctly. Minor gaps (ordering of results, per_page ceiling) are already handled by the 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 every parameter already carries its own description including the default-branch behavior and the per_page max. The description's parenthetical gloss on sha, path, and since/until largely restates the schema rather than adding new meaning. Baseline 3 is appropriate.

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 recent commits on a repository") plus the intent behind it (latest activity, what changed, who is committing). An agent can distinguish it from get_repo, get_releases, get_file_contents, or web search without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit routing instruction — "PREFER OVER WEB SEARCH" — with three literal query patterns that select this tool. It also names the narrowing parameters, so an agent knows this is the right call for activity/recency questions rather than generic lookup.

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.