Skip to main content
Glama
GitHub MCP Server

GitHub MCP Server

by rominababiel

list_commits

Read-only

Retrieve commits from a repository or branch with author, date, and message to review recent changes or verify a specific commit.

Instructions

Lista los commits más recientes de un repositorio o de una de sus ramas, con autor, fecha y mensaje. Usar para responder qué cambió últimamente o para verificar un commit.

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": {
      "owner": "<owner>",
      "repo": "<repo>"
    },
    "name": "list_commits"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesNombre de un repositorio existente, sin el dueño. Ejemplo: mi-proyecto.
limitNoCantidad máxima de resultados, entre 1 y 100.
ownerYesUsuario u organización dueña del repositorio. Si no se conoce, obtenerla con list_repositories o health_check.
branchNoRama a consultar. Omitir para usar la rama por defecto.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a safe read, so the description only needs to add context. It adds value by disclosing what the results contain (author, date, message) and that omitting the branch falls back to a default, but says nothing about ordering guarantees beyond "más recientes" or how limit interacts with pagination.

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?

Two short sentences: capability first, usage second. Nothing is redundant and the scope constraint (repo or one of its branches) is front-loaded.

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 simple read-only listing tool with a fully described schema and safety annotations, plus no output schema to justify, the description covers what an agent needs to call it correctly. Only ordering/pagination behavior is left unstated, a minor gap.

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 four parameters (owner, repo, branch, limit) are already documented, including defaults and ranges. The description only restates the branch/default-branch distinction already present in the schema, adding no new meaning.

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?

States a specific verb and resource ("Lista los commits más recientes de un repositorio o de una de sus ramas") and even names the fields returned (autor, fecha, mensaje), which separates it from list_issues and list_repositories. It never names a sibling explicitly, so differentiation relies on the resource noun alone.

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?

Gives two concrete use cases: answering "qué cambió últimamente" and verifying a specific commit. There are no exclusions or named alternatives (e.g. when to prefer create_commit or a filtered search), so the guidance is clear but one-sided.

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