Skip to main content
Glama

git_status

Read-only

Inspect the active vault's local Git state read-only, including HEAD/branch, vault files, outside-vault change counts, staged-outside warnings, and in-progress operation risk without staging or committing.

Instructions

Inspect local Git state for the active vault only. Returns HEAD/branch, vault files, outside-vault change counts, staged-outside-vault warnings, and in-progress operation risk. Read-only; never initializes, stages, commits, or pushes.

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

No arguments

Output Schema

NameRequiredDescriptionDefault
okYes
headNo
riskNo
filesNo
branchNo
countsNo
dryRunNo
reasonNo
subjectNo
repoRootYes
committedNo
operationYes
vaultRootYes
commitHashNo
pushReasonNo
validationNo
detachedHeadNo
expectedHeadNo
previousHeadNo
commitSummaryNo
pushSupportedNo
vaultPathspecNo
stagedOutsideVaultNo
operationInProgressNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed28 schema fields changedv2.7.5
    • removedOutput schema / properties / commitHash / minLength
      Removed value: -1
    • removedOutput schema / properties / commitHash / pattern
      Removed value: -"^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$"
    • removedOutput schema / properties / counts / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / counts / properties
      Removed value: -{
      -  "outsideVault": {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "staged": {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "stagedOutsideVault": {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "total": {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "unstaged": {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "untracked": {
      -    "minimum": 0,
      -    "type": "integer"
      -  }
      -}
    • removedOutput schema / properties / counts / required
      Removed value: -[
      -  "total",
      -  "staged",
      -  "unstaged",
      -  "untracked",
      -  "outsideVault",
      -  "stagedOutsideVault"
      -]
    • removedOutput schema / properties / files / items
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "index": {
      -      "maxLength": 1,
      -      "minLength": 1,
      -      "type": "string"
      -    },
      -    "path": {
      -      "minLength": 1,
      -      "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -      "type": "string"
      -    },
      -    "staged": {
      -      "type": "boolean"
      -    },
      -    "status": {
      -      "enum": [
      -        "untracked",
      -        "added",
      -        "modified",
      -        "deleted"
      -      ],
      -      "type": "string"
      -    },
      -    "unstaged": {
      -      "type": "boolean"
      -    },
      -    "worktree": {
      -      "maxLength": 1,
      -      "minLength": 1,
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "path",
      -    "index",
      -    "worktree",
      -    "status",
      -    "staged",
      -    "unstaged"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / operation / enum
      Removed value: -[
      -  "git_status",
      -  "git_snapshot"
      -]
    • removedOutput schema / properties / previousHead / minLength
      Removed value: -1
    • removedOutput schema / properties / previousHead / pattern
      Removed value: -"^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$"
    • removedOutput schema / properties / pushReason / minLength
      Removed value: -1
    • removedOutput schema / properties / pushReason / pattern
      Removed value: -"^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$"
    • removedOutput schema / properties / reason / minLength
      Removed value: -1
    • removedOutput schema / properties / reason / pattern
      Removed value: -"^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$"
    • removedOutput schema / properties / repoRoot / minLength
      Removed value: -1
    • removedOutput schema / properties / repoRoot / pattern
      Removed value: -"^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$"
    • removedOutput schema / properties / risk / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / risk / properties
      Removed value: -{
      -  "level": {
      -    "enum": [
      -      "low",
      -      "medium",
      -      "high"
      -    ],
      -    "type": "string"
      -  },
      -  "warnings": {
      -    "items": {
      -      "minLength": 1,
      -      "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -      "type": "string"
      -    },
      -    "type": "array"
      -  }
      -}
    • removedOutput schema / properties / risk / required
      Removed value: -[
      -  "level",
      -  "warnings"
      -]
    • removedOutput schema / properties / stagedOutsideVault / items
      Removed value: -{
      -  "minLength": 1,
      -  "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -  "type": "string"
      -}
    • removedOutput schema / properties / subject / minLength
      Removed value: -1
    • removedOutput schema / properties / subject / pattern
      Removed value: -"^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$"
    • removedOutput schema / properties / validation / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / validation / properties
      Removed value: -{
      -  "errorFiles": {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "pathDrifts": {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "problemFiles": {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "scanned": {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "warningFiles": {
      -    "minimum": 0,
      -    "type": "integer"
      -  }
      -}
    • removedOutput schema / properties / validation / required
      Removed value: -[
      -  "scanned",
      -  "problemFiles",
      -  "errorFiles",
      -  "warningFiles",
      -  "pathDrifts"
      -]
    • removedOutput schema / properties / vaultPathspec / minLength
      Removed value: -1
    • removedOutput schema / properties / vaultPathspec / pattern
      Removed value: -"^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$"
    • removedOutput schema / properties / vaultRoot / minLength
      Removed value: -1
    • removedOutput schema / properties / vaultRoot / pattern
      Removed value: -"^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$"
  2. First observedv0.13.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, destructiveHint=false, openWorldHint=false), but the description adds real context beyond them: the exact categories of returned state, the active-vault-only scope, and an explicit negative list of Git operations it will not perform. The only unaddressed annotation is idempotentHint=false, which is not clarified but also not contradicted.

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 dense sentences with zero filler: the first states scope and return surface, the second states the safety contract. The scope constraint is front-loaded and nothing is repeated from the annotations verbatim.

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?

With no parameters, an output schema, and full annotation coverage, the description carries its remaining burden well by stating what is inspected and what is never done. The only shortfall is sibling positioning against git_history and git_snapshot, which is a usage-guidance concern rather than a completeness gap for calling the tool itself.

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

Parameters4/5

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

The tool takes zero parameters, so there is nothing for the description to disambiguate. This is the expected baseline for a no-argument inspection tool, and the schema's additionalProperties=false is consistent with the scoped framing.

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?

Names a specific verb and resource ("Inspect local Git state") and scopes it to "the active vault only," then enumerates the returned signals (HEAD/branch, vault files, outside-vault change counts, staged-outside-vault warnings, in-progress operation risk). An agent knows exactly what it gets, though it does not differentiate itself from siblings like git_history or git_snapshot.

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?

The read-only framing and "never initializes, stages, commits, or pushes" implicitly route write intents away, and "for the active vault only" sets a boundary. However, there is no explicit statement of when to choose this over git_history or git_snapshot, leaving the comparison to the agent's inference.

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