Skip to main content
Glama
codedev-mcp

codedev-mcp

by Kranthithota

git_show

Read-onlyIdempotent

Show a Git commit's message, author, date, and diff, with optional file stats, to inspect changes and history.

Instructions

Show details of a git commit: message, author, date, and diff.

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_show"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoCommit hash or ref (default: HEAD)
statNoShow file stats only

Output Schema

NameRequiredDescriptionDefault
dataNo
actionYes
entriesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.5

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=false, so the safety profile is fully covered and the description need not repeat it. The description adds that a diff is included by default, which is useful, but it never explains the interaction with the stat parameter that suppresses the diff in favor of file stats. Nothing here contradicts the annotations.

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?

A single front-loaded sentence with the verb, the resource, and the payload enumerated. There is no filler or redundancy, and everything an agent needs to recognize the tool is in the first few words.

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 two-parameter, read-only, zero-required-argument tool with a full output schema and complete annotation coverage, the description covers the essentials. The one gap is behavioral nuance around the stat flag versus full diff output, which matters for a tool whose primary payload is a diff.

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?

Schema description coverage is 100%, so both parameters are already documented, and the baseline would be 3. The description earns slightly more by naming 'diff' as the default output, which implicitly contrasts with the stat-only mode, though it never states that trade-off explicitly.

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?

"Show details of a git commit" pairs a specific verb with a specific resource, and the field list (message, author, date, diff) makes the output scope concrete. It stops short of distinguishing itself from siblings like git_diff or git_log, so an agent must infer that this is the single-commit inspector rather than a range/list or raw-diff tool.

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?

Usage is only implied: the agent can deduce this is for inspecting one commit rather than listing history or comparing two revisions. There is no explicit when-to-use statement, no mention of when to prefer git_diff or git_log, and no note that ref defaults to HEAD.

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