Skip to main content
Glama

git_inspect

Inspect Git repositories read-only to view status, diff stats, diffs, and logs without changing files, index, or commits.

Instructions

Read-only git inspection (status, diff_stat, diff, log). Never modifies git state or commits.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repoDir": "<repoDir>"
    },
    "name": "git_inspect"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNostatus
limitNo
repoDirYesAbsolute path to git repository
filePathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; it does disclose the critical safety trait (read-only, never mutates state or commits), which is genuinely useful. However, it says nothing about output shape, whether diffs can be large or truncated, or how the limit interacts with log/diff results.

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?

Two short sentences, front-loaded with the read-only guarantee, then the mode list. Nothing is padded or redundant.

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

Completeness3/5

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

For a four-parameter tool with no annotations and no output schema, the definition covers purpose and safety but leaves two of four parameters semantically opaque and gives no hint about return content. Adequate for a quick call, but not fully self-sufficient.

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 25%, and the description compensates for almost none of it: 'limit' (range 1-50, default 10) and 'filePath' (unexplained, presumably a path filter for diff/log) carry no meaning beyond their names. The mode enumeration merely restates the schema enum.

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?

States a specific verb and resource ('Read-only git inspection') and enumerates the four modes (status, diff_stat, diff, log) that match the enum in the schema, so an agent knows exactly what scope of operations this covers and can distinguish it from a mutating git 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?

The 'Read-only ... Never modifies git state or commits' clause implies that write operations belong elsewhere (presumably the sibling git_action), but no alternative is named and no explicit when-to-use/when-not-to-use condition is given. Usage is inferable rather than stated.

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