Skip to main content
Glama

Scan git history

scan_repo
Read-onlyIdempotent

Scan a Git repository and its commit history for hardcoded secrets; findings are returned with secret values redacted.

Instructions

Scan a git repository, including its commit history, for hardcoded secrets. Secret values are always redacted.

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

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path to the git repository.
log_optsNoOptional `git log` options to limit the scan, e.g. "main..HEAD" or "--since=2024-01-01".
max_findingsNoMaximum findings to return (the total count is always reported).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description earns credit for adding a genuine behavioral guarantee beyond the annotations: 'Secret values are always redacted', which tells the agent return payloads are safe to surface without leaking credentials. It stops short of noting that history scans can be slow or that results are capped, so it is not a full behavioral picture.

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, zero filler, with the resource and scope front-loaded before the redaction guarantee. Nothing could be removed without losing information.

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

Completeness4/5

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

For a read-only scanning tool with full schema coverage and rich annotations, the description covers what is scanned, the scope extension into history, and the redaction guarantee. What is missing is modest: there is no output schema, so a hint about the shape of findings (beyond the max_findings cap noted in the schema) would complete the picture.

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 every parameter (path, log_opts, max_findings) is already documented in the schema, including the example git log ranges and the note that total count is always reported. The description adds no parameter-level meaning beyond this, which is the baseline-3 case where the schema does the heavy lifting.

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 states a specific verb and resource ('Scan a git repository') and extends the scope explicitly to 'its commit history', which is a meaningful qualifier. It does not, however, distinguish itself from the siblings scan_path, scan_staged, or scan_text, so an agent must infer that this is the history-aware variant from the scope phrase alone.

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 only implied: scanning 'a git repository, including its commit history' signals the history-scanning case, but the description never says when to choose this over scan_staged or scan_path, nor does it state prerequisites such as the path needing to be a valid git working tree. The required 'path' parameter and its 'Absolute path to the git repository' description carry most of the routing signal.

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