Skip to main content
Glama

git_status

Read-only

Get compact git branch and working-tree status for a repository inside an allowed root. Check repository state for build and error monitoring.

Instructions

Get compact git branch and working-tree status for a repository inside an allowed root.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
agentNoOptional existing runtime binding for monitor attribution; no extra handshake.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds two useful behavioral facts the annotations don't carry: output is 'compact' and the path must be inside a permitted root. It says nothing about what happens for a path outside the root or a non-repository directory, so a 3 is appropriate.

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?

A single 14-word sentence that front-loads the verb, resource, and output character ('compact'), with the scoping constraint at the end. No filler or redundancy.

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 status tool with annotations covering safety and no output schema, the definition is nearly complete; the agent knows what it reads and where it may read from. Only edge behavior (invalid path, non-repo dir) and any return-shape expectation are left unaddressed.

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 50%: the nested 'agent' object carries its own description, while the required 'path' parameter has none. The phrase 'for a repository inside an allowed root' partially compensates by implying path is a repo directory constrained to an allowed root, but no format or failure semantics are given.

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 ('Get') and resource ('git branch and working-tree status') with explicit scope ('for a repository inside an allowed root'). This cleanly separates it from siblings git_diff (diffs) and git_log (history) without needing their schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: an agent infers you call this to inspect branch/dirty state before diffing or committing. There is no explicit when-to-use statement, no mention of when to prefer git_diff or git_log instead, and no prerequisite guidance.

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