Skip to main content
Glama

List config git commits

git_log
Read-onlyIdempotent

List recent commits in the Home Assistant config Git repository to review configuration changes before a rollback or diff; returns short SHA, message, author, and date.

Instructions

List recent commits in the HA config git repository.

Calls _repo() and returns up to limit commits from repo.iter_commits, most recent first, with short SHA, message, author name and ISO commit date.

Use when: reviewing recent config changes before a rollback or diff. Returns: list[dict] {"sha", "message", "author", "date"}. Errors: raises RuntimeError (from _repo()) when gitpython is not installed or no git repo exists yet — run git_init_config first. Limits: limit caps the number of commits returned; no further pagination is offered.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "git_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of commits to return, most recent first. Defaults to 20.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.1

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive), the description discloses the error path (RuntimeError from _repo() when gitpython is missing or no repo exists, with the remedy 'run git_init_config first') and the pagination limit. Those are the two things an agent actually needs to recover from failure and to avoid expecting pagination, and neither is in the annotations.

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 the purpose, then labeled lines (Use when / Returns / Errors / Limits) that are easy to scan. Minor waste in exposing internal implementation names (`_repo()`, `repo.iter_commits`) that mean nothing to a calling agent, but nothing is bloated.

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 single-optional-parameter read tool this covers purpose, trigger, error recovery, output shape, and the absence of pagination. Nothing an agent needs in order to call it correctly or handle failure is missing, even setting aside the output schema that already exists.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the limit parameter is already documented there, so the baseline is 3. The description adds meaning the schema lacks: results are most recent first and the limit is a hard cap with no offset/pagination offered, which changes how an agent should size calls.

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?

First sentence gives a specific verb (list) and a scoped resource (recent commits in the HA config git repository), and the following sentence states ordering and returned fields. An agent can tell this apart from git_diff, git_status, or git_list_branches without opening any schema.

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 'Use when: reviewing recent config changes before a rollback or diff' line gives a concrete invocation context and implicitly points at the rollback/diff siblings. It stops short of naming an explicit alternative to use instead when the agent wants a diff rather than a commit list, so it is not a full when/when-not pairing.

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

Deploy Server

Other Tools