Skip to main content
Glama
GeminiDesk MCP
by LZ7TOP

Git Repository Status

git_status

Inspect a Git repository's current branch, remote synchronization status, and staged, unstaged, and untracked files.

Instructions

查看 Git 仓库当前分支、远端同步状态以及暂存/未暂存/未跟踪文件列表。

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
repoPathNoGit 仓库路径,留空使用默认仓库路径

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description must carry the full burden; it partially does by disclosing what information is reported (branch, remote tracking, three file-state categories), which implies a safe read-only inspection. It never states explicitly that the tool does not mutate the index or working tree, nor does it mention cost or refresh behavior.

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?

A single front-loaded sentence that maps directly onto the tool's behavior with no filler. It could be marginally stronger by leading with the read-only nature, but nothing is wasted.

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 one-optional-parameter, no-output-schema, read-only status tool, the description covers the essential question of what the agent will learn. The main omission is an explicit statement of read-only semantics, which no annotation supplies.

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 description coverage is 100% and the single optional repoPath parameter is documented there as falling back to a default repository path. The description adds no further meaning about path resolution or default behavior, so the baseline of 3 applies.

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?

The description names a specific verb (查看) and resource (Git 仓库) and enumerates the concrete outputs: current branch, remote sync status, and staged/unstaged/untracked file lists. This clearly distinguishes it from siblings like git_commit or git_sync, though it never explicitly names an alternative, and its 'current branch' element partially overlaps with git_branch.

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?

There is no when-to-use or when-not-to-use guidance. The description does not tell the agent to prefer git_diff for content changes or git_branch for branch enumeration, leaving the agent to infer the choice from the resource name alone.

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