Skip to main content
Glama

Show commit

git_show
Read-onlyIdempotent

Displays one commit's message, stats, and optional patch from a repository so you can inspect changes and understand why a revision was made.

Instructions

Show one commit: message, stats and (optionally) the patch.

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
revNoHEAD
pathNo
repoNoPath to the repository (or a folder inside it). Defaults to the first allowed root.
patchNo
max_charsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is covered. The description adds little beyond annotations — notably it never discloses that output is character-capped via max_chars (default 30000, max 200000), which is the main behavioral trait an agent needs to anticipate truncation.

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 zero filler; every clause (message, stats, optional patch) conveys return content.

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?

Five optional parameters with no output schema and only 20% schema coverage leaves the agent guessing about three of them, and the truncation semantics of max_chars are unstated. For a tool whose whole purpose is returning potentially large text, that gap matters.

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?

Schema description coverage is only 20% — just the repo parameter is documented. The description clarifies only the patch flag ('optionally the patch'); it says nothing about what path does alongside rev, what rev accepts (branch, tag, SHA), or that max_chars bounds/truncates output. Low coverage and only one parameter compensated.

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?

States a specific verb and resource ('Show one commit') and enumerates what comes back: message, stats, and optionally the patch. That content profile distinguishes it from git_log (many commits) and git_diff (raw diff), though it never names those siblings explicitly.

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 guidance: nothing says to prefer git_log for browsing history or git_diff for comparing revisions, and no prerequisites for the repo are stated. The single-commit framing only implies usage.

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

Deploy Server

Other Tools