Skip to main content
Glama

Commit all config changes

git_commit_all

Stages and commits every change in the Home Assistant config directory with a provided message, creating a checkpoint before risky edits and skipping the commit if nothing is dirty.

Instructions

Stage and commit every change in the HA config directory.

Calls _repo(), stages everything with git add -A, and commits message unless nothing is dirty, in which case no commit is made.

Use when: creating a checkpoint before a risky change to /config. Not for: writing one file and checkpointing it in a single call — use git_safe_write_with_checkpoint. Returns: dict {"status": "committed", "sha", "message"}, or {"status": "nothing_to_commit"} when the working tree is clean. Errors: raises RuntimeError (from _repo()) when gitpython is not installed or no git repo exists yet — run git_init_config first.

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": {
      "message": "<message>"
    },
    "name": "git_commit_all"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageYesCommit message describing this checkpoint or change.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.1

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnly/destructive/idempotent hints; the description goes well beyond by disclosing that it stages everything with git add -A and skips the commit entirely when the tree is clean. It also names the failure mode (RuntimeError when gitpython is missing or no repo exists) and the remediation, which annotations cannot express.

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 core action, then clearly sectioned into use/not-for/returns/errors, so scanning is easy. Minor waste in the implementation aside about calling `_repo()` and in restating the return dict, which an output schema already covers.

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?

Covers preconditions, no-op behavior, and error paths, which is everything needed to invoke it safely for a one-parameter tool. The only redundancy is spelling out the return payload despite an output schema existing.

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% and the single `message` parameter is fully documented in the schema, so the description adds no syntax or format detail beyond it. Saying the commit uses `message` unless nothing is dirty is marginal added meaning, consistent with the baseline of 3.

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 pair (stage and commit) plus the exact resource scope (every change in the HA config directory). This distinguishes it cleanly from git_safe_write_with_checkpoint, which is named explicitly as the single-file alternative.

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?

Provides explicit "Use when" (checkpoint before a risky change to /config) and "Not for" guidance that names the correct sibling for the excluded case. It also states a prerequisite (run git_init_config first), so an agent knows the ordering constraint.

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