Skip to main content
Glama

audit_git_changes

Audit only modified, staged, or branch-diff Python files against code craft, anti-pattern, and OOP standards, avoiding unchanged repository files for a fast changeset review.

Instructions

Fast Git Changeset Audit (<10ms): Audits only modified, staged, or branch-diff Python files against code craft, anti-pattern, and OOP standards without re-scanning unchanged repository files.

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": "audit_git_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
strictNoIf true, treats warnings as failures
repo_pathNoPath to the repository root directory (default: '.').
base_branchNoOptional base branch to diff against (e.g. 'main')
staged_onlyNoIf true, audits only Git staged files (pre-commit fast path)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/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 disclosure burden. It usefully reveals a performance characteristic (<10ms) and the key behavioral trait that unchanged files are skipped, but it never states what an audit produces (violations, counts, pass/fail), whether it requires a Git repository, or what happens on a non-Python or dirty tree.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence packs the speed claim, the resource scope, the standards checked, and the exclusion criterion with no filler. It is dense but readable, and the most decision-relevant information (fast, changed-files-only) comes first.

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, all-optional audit tool with no annotations and no output schema, the description covers what is scanned and why it is fast, but leaves the result shape and failure/error behavior entirely unstated. An agent knows when to call it but not what it will get back.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all four parameters are already documented in the schema, and the description's 'modified, staged, or branch-diff' phrasing merely echoes the staged_only and base_branch concepts. Baseline 3 applies since the description adds no format or interaction detail beyond the schema.

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 (audits) and a precise resource (modified/staged/branch-diff Python files) and explicitly bounds scope with 'without re-scanning unchanged repository files', which implicitly separates it from a full-repo audit sibling. It stops short of naming audit_code_quality as the alternative, so the contrast is inferential rather than stated.

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 implied by the '<10ms' framing and the 'without re-scanning unchanged repository files' clause: use this for a fast incremental check. There is no explicit when-not-to-use guidance and no named alternative for a full-repository audit, leaving the agent to infer the boundary.

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