Skip to main content
Glama

git_git_diff

Show diff of uncommitted changes or compare a specific commit by providing its SHA. Understand recent modifications in your Git repository.

Instructions

Show diff of uncommitted changes, or diff of a specific commit (by SHA).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
shaNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It states the tool shows a diff, which is a read-only operation, but does not elaborate on whether staged versus unstaged changes are included or any side effects. It is adequate but not detailed.

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?

The description is a single 13-word sentence. It is front-loaded with the verb 'Show', and every word is necessary. No redundancy or fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has an output schema (not provided), so return values need not be explained. The complexity is low with one optional parameter, and the description covers both use cases. It is complete for an AI agent.

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 input schema has 0% description coverage, so the description must compensate. It explains that the 'sha' parameter is optional and used for a specific commit ('by SHA'). This adds meaning beyond the schema's type definition.

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 verb 'Show diff' and specifies the resources: 'uncommitted changes' or 'a specific commit'. It distinguishes itself from sibling git tools like git_git_status (shows status) and git_git_log (shows log). The dual mode is explicit.

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?

The description implies when to use: when you need a diff of uncommitted changes or a specific commit. It does not explicitly state when not to use or provide alternatives, but the purpose is clear enough for an AI agent to choose correctly among siblings.

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/Fistacho/ha-nexus-agent'

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