Skip to main content
Glama
local-pc-mcp

local-pc-mcp

by contra333

Git status

git_status
Read-only

Shows changed and untracked files by returning git status --porcelain output for a repository whose root lies inside the allowed roots.

Instructions

Show git status --porcelain for a repository whose root is inside ALLOWED_ROOTS.

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

Input Schema

NameRequiredDescriptionDefault
pathYes

Output Schema

NameRequiredDescriptionDefault
repoYes
statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and destructiveHint=false, and the description adds two pieces of genuine context: the porcelain output format and the ALLOWED_ROOTS access boundary. It does not cover failure behavior for out-of-root paths, which keeps it from a 5.

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?

One sentence with zero padding; the output format and the access constraint are both front-loaded before any other detail.

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?

Annotations and an output schema mean return values and safety are covered elsewhere, and the scoping rule is stated. The remaining hole is the meaning of "path" and behavior when it falls outside ALLOWED_ROOTS, which the definition should resolve.

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% for the single required "path" parameter, and the description never clarifies whether path means the repo root, a subdirectory, or an arbitrary path to test access against. With no other documentation source, this ambiguity is left entirely to the caller.

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 ("Show") and resource ("git status --porcelain") plus the scope constraint that the repository root must be inside ALLOWED_ROOTS. It is distinguishable from siblings like git_diff and git_log, though it never names them explicitly.

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 only usage signal is the precondition that the repo root must lie inside ALLOWED_ROOTS; there is no explicit guidance on when to choose this over git_diff or git_log, which the agent must infer.

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