Skip to main content
Glama

git status

git_status
Read-onlyIdempotent

Summarize a repository's working tree state: current branch, upstream tracking, ahead/behind counts and changed paths. Read-only; use it to decide what to inspect with git_diff.

Instructions

Summarise a repository's working tree: current branch, upstream, ahead/behind counts and changed paths. Read-only. Use this before deciding what to look at with git_diff.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repo": "<repo>"
    },
    "name": "git_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesAbsolute path to a git working tree, inside MCP_ALLOWED_ROOTS

Output Schema

NameRequiredDescriptionDefault
aheadYesCommits ahead of upstream
behindYesCommits behind upstream
branchYesCurrent branch name
changesYes
upstreamYesUpstream ref, null when the branch has none
truncatedYesTrue when the tree has more changed paths than the 200 kept

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so "Read-only" restates structured data. The list of what is reported (branch, upstream, ahead/behind, changed paths) adds some useful scope context, and an output schema exists, so the description carries little extra burden.

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?

Two sentences, front-loaded with what is reported, followed by the routing hint. No filler wording; the only redundancy is "Read-only", which is one word.

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?

The tool is simple, fully annotated, has a complete output schema and a single documented parameter, and the description covers scope and next step. Nothing essential is missing, though it does not mention error behavior such as an invalid or non-allowed path.

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?

Only one parameter and schema description coverage is 100%, with the schema itself stating it must be an absolute path inside MCP_ALLOWED_ROOTS. The description adds no meaning about the repo argument, so the documented baseline of 3 applies.

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?

Specific verb ("Summarise") plus resource ("a repository's working tree") with enumerable scope: current branch, upstream, ahead/behind counts, changed paths. It also names the sibling git_diff, so an agent can distinguish the two without opening either schema.

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?

"Use this before deciding what to look at with git_diff" gives explicit sequencing and names the alternative tool that follows. There are no stated when-not-to-use conditions, but for a low-risk read this is nearly complete guidance.

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