Skip to main content
Glama

get_git_status

Show a repository's Git status, including current branch, dirty files, ahead/behind counts, and recent commits to assess local changes.

Instructions

Show the git status of a repository: branch, dirty files, ahead/behind, and recent commits

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": "get_git_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoPath to the git repository (defaults to current working directory).
include_recent_commitsNoInclude the last 5 commits

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?

No annotations are provided, so the description carries the full burden. It discloses the returned content categories, which is useful, but never states explicitly that this is a read-only, side-effect-free operation, and says nothing about behavior when the path is not a git repository or unreadable.

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 front-loaded sentence with no filler; each listed item conveys what the caller will get back.

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 two-parameter read-only tool with full schema coverage, the description plus schema is nearly complete, and because there is no output schema the enumeration of returned fields is a valuable addition. A brief note on non-git paths or read-only semantics would close the remaining gap.

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%, so both parameters (path, include_recent_commits) are already fully documented in the schema. The description's 'recent commits' phrase loosely maps to include_recent_commits but adds no syntax or default information beyond what the schema states (last 5 commits, path defaults to cwd).

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 (Show) and resource (git status of a repository), then enumerates exactly what is reported: branch, dirty files, ahead/behind, recent commits. This clearly distinguishes it from the sibling tools, which cover config, dependencies, docker, env, ports, and processes.

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 by the subject matter (inspecting a repo's git state). There is no explicit when-to-use, no prerequisites, and no mention of alternatives or when another tool would be preferable. Adequate but with clear gaps.

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