Skip to main content
Glama

Initialize the config git repository

git_git_init_config
Idempotent

Initialize a Git repository in the Home Assistant config directory, creating a default .gitignore and initial commit to prepare for other git tools.

Instructions

Initialize a git repository in the HA config directory.

Creates a git repo at HA_CONFIG_PATH via git.Repo.init unless a .git/ directory already exists there, writes a default .gitignore (secrets.yaml, .storage/, .db, home-assistant.log) when none exists, and makes one initial commit adding that .gitignore.

Use when: preparing /config before using any other git_* tool or git_safe_write_with_checkpoint for the first time. Returns: dict {"status": "initialized"|"already_initialized", "path": ...}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds concrete behavioral detail beyond the annotations: the idempotency check on .git/, the specific .gitignore contents, and the initial commit side effect. It does not mention permissions or failure modes, but for a low-risk idempotent init tool this is solid added context.

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?

Front-loaded with a single-sentence purpose, followed by the exact actions, then a 'Use when' routing line, then the return shape. Every sentence earns its place with no redundancy; the structure is excellent for a zero-parameter tool.

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 the action, side effects, idempotency trigger, usage condition, and return dict, so an agent can invoke it correctly. An output schema exists, which slightly lightens the return-value burden, but the description still adds the status enum values usefully. Minor gaps remain around error conditions, but the tool's low complexity makes this near-complete.

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?

Parameter count is 0, so the baseline is 4. The description appropriately spends no space on nonexistent parameters and instead documents the implicit path (HA_CONFIG_PATH), which is the only 'parameter-like' variable relevant to invoking the tool correctly.

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 ('Initialize a git repository in the HA config directory') and explicitly describes the concrete actions taken (creates repo at HA_CONFIG_PATH, writes .gitignore, makes initial commit). Clear enough that an agent can distinguish this from git_git_status, git_git_commit_all, and other git_* siblings.

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?

The 'Use when:' sentence explicitly names the prerequisite scenario — preparing /config before using any other git_* tool or git_safe_write_with_checkpoint for the first time. This directly routes the agent among siblings and states the trigger condition with no ambiguity.

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