Skip to main content
Glama

Show config git status

git_status
Read-onlyIdempotent

Inspect the /config Git repository to view the active branch, staged, modified, and untracked files plus a dirty flag before committing or writing files.

Instructions

Show git status of the HA config directory.

Calls _repo() for the /config git repo and returns the active branch, staged/modified/untracked file lists (repo.index.diff, repo.untracked_files) and an overall dirty flag.

Use when: checking what changed in /config before committing or writing a file. Returns: dict {"branch", "staged", "modified", "untracked", "is_dirty"}. Errors: raises RuntimeError (from _repo()) when gitpython is not installed or no git repo exists yet at HA_CONFIG_PATH — run git_init_config first.

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_status"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.1

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile is covered. The description's real contribution is the failure mode — a RuntimeError from _repo() when gitpython is missing or no repo exists at HA_CONFIG_PATH — plus a remediation step. That is useful, but references to internal calls like repo.index.diff are implementation detail rather than agent-facing behavior, keeping it at a solid 3.

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?

Well-structured with front-loaded purpose followed by 'Use when', 'Returns' and 'Errors' labels that make it scannable. Minor waste comes from internal implementation references (_repo(), repo.index.diff, repo.untracked_files) that add length without helping an agent decide or call.

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?

Complete for a zero-parameter read tool: purpose, trigger, prerequisites, error conditions and remediation are all present. An output schema exists, so the explicit return-key listing is redundant but harmless rather than a gap.

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?

The tool takes no parameters, so the baseline is 4; there is nothing for the description to disambiguate. The description correctly avoids inventing options that would suggest parameters exist.

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 ('Show git status of the HA config directory') and enumerates exactly what the response covers (active branch, staged/modified/untracked lists, dirty flag). It does not explicitly contrast itself with nearby siblings like git_diff or git_log, so an agent must infer the distinction from the return shape.

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?

Provides an explicit 'Use when: checking what changed in /config before committing or writing a file' trigger, which ties it to concrete workflows. It also names the required prerequisite in the error path ('run git_init_config first'), though it gives no explicit when-not guidance or named alternatives.

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