Skip to main content
Glama
local-pc-mcp

local-pc-mcp

by contra333

Git diff

git_diff
Read-only

Inspect staged or unstaged Git diffs for a specified path; set staged=true to view cached changes.

Instructions

Show git diff --no-ext-diff. Set staged=true for --cached.

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": {
      "path": "<path>"
    },
    "name": "git_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
stagedNo

Output Schema

NameRequiredDescriptionDefault
diffYes
repoYes
stagedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds genuine behavioral context by disclosing that external diff drivers are disabled (--no-ext-diff) and that staged=true maps to --cached. It stops short of noting any output characteristics or working-tree assumptions, so it is adequate rather than rich.

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 core operation and immediately followed by the one non-obvious parameter mapping. No filler or repetition.

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?

An output schema exists, so return values need not be explained, and annotations cover safety. However, for a tool whose required path parameter is undocumented in both schema and description, the definition leaves a meaningful gap about scope of the diff.

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 0%, so the description must carry parameter meaning. It explains the optional staged flag's git semantics but says nothing about the required path parameter—whether it is a file, directory, or repo root—which is the more consequential gap.

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?

The description names a specific verb and resource ('Show git diff') and even pins the exact invocation form (--no-ext-diff), so an agent knows precisely what operation it gets. It does not explicitly contrast itself with siblings like git_log or git_status, keeping it at a solid 4 rather than a 5.

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?

The only guidance is a parameter-level note ('Set staged=true for --cached'); there is no statement of when to use this tool versus git_status, git_log, or file_read, and no exclusions or prerequisites. An agent must infer the use case from the name alone.

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