Skip to main content
Glama

Git Status Tools

git_status
Read-onlyIdempotent

Inspect Git working tree status and compare staged, unstaged, or branch-reference changes to review edits before committing.

Instructions

Status and diff tool. Use action=status|diff|diff_main to inspect working tree and branch deltas.

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
modeNounstaged
actionNostatus
to_refNo
filteredNo
from_refNo
repo_pathNoAbsolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument.
base_branchNomain
response_formatNoOutput format for the response.markdown

Output Schema

NameRequiredDescriptionDefault
outputNo
statusNo
summaryNo
merge_baseNo
base_branchNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is covered. The description adds nothing on top of that — no note about repo_path fallback behavior, how large diffs are handled, or what the markdown/json responses look like, all of which go beyond the annotations.

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?

Two front-loaded sentences with no filler; the scoping statement comes first and the action list second. It is efficient, though the opening phrase is close to a restatement of the tool name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter tool with an output schema present, the description should still explain the relationship between action and the ref/mode parameters, since that determines correct invocation. It leaves the majority of parameters unexplained and offers no behavioral context, making the definition inadequate for this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 8 parameters and only 25% schema description coverage, the description needs to carry meaning and does not. It only echoes the action enum values; mode (unstaged/staged/refs), from_ref, to_ref, filtered, and base_branch are left undefined in both schema and description, so an agent cannot tell which refs belong with which action.

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?

"Status and diff tool" names the verb area and resource directly, and the following clause clarifies that it inspects working tree and branch deltas. It is clear enough to separate this from unrelated siblings like git_remotes or git_tag, though it does not explicitly contrast with close neighbors such as git_commits or git_history.

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

Usage Guidelines2/5

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

The only guidance is "Use action=status|diff|diff_main," which restates the enum in the schema rather than explaining when to pick this tool over git_commits or git_history. There are no conditions, prerequisites, or exclusions, so the agent must infer selection from the name alone.

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