Skip to main content
Glama

Git diff

git_diff
Read-only

Execute uncolored git diff to compare file changes within a workspace, highlighting modifications for review.

Instructions

Run git diff --no-color inside an open workspace.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceIdYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
diffYes
exitCodeYes
stderrYes
Behavior2/5

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

While annotations confirm read-only behavior, the description only adds the '--no-color' flag. It does not explain what the diff compares (e.g., working tree vs index, or vs HEAD), nor does it describe the output format beyond no color.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely short (one sentence), which is efficient but omits important details. It is front-loaded with the core action, but lacks completeness. A slightly longer description would be more useful.

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 a simple tool with one required parameter and an output schema, the description is still incomplete. It fails to explain what the output represents (e.g., unstaged changes, staged changes) and how to interpret it. The existence of an output schema somewhat mitigates this, but the description should still provide high-level context.

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?

The only parameter, workspaceId, has no schema description (0% coverage). The description adds the context 'inside an open workspace', implying the workspace must be open, but provides no further details like whether it is a folder or a repository identifier.

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?

The description clearly states the action ('Run'), the specific command ('git diff --no-color'), and the context ('inside an open workspace'). It distinguishes from sibling tools like git_status by naming a different git command.

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?

No guidance is provided on when to use this tool versus alternatives (e.g., git_status, drift_check). There is no mention of prerequisites, limitations, or exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/majiayu000/workspaceguard-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server