Git Status
git_statusCheck git repository status: branch, ahead/behind counts, staged, unstaged, and untracked files. Use to orient before committing or opening a PR.
Instructions
Report the current branch, upstream ahead/behind counts, and staged/unstaged/untracked files.
Use to orient before committing or opening a PR, and to parse a ticket id from a branch named type/<id>-<slug>. Read-only.
Args:
repo_path (string, optional): repository path (default: server cwd)
Returns JSON: { branch, ahead, behind, staged[], unstaged[], untracked[] }
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
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | No | Path to the git repository. Defaults to the server's working directory. |