Skip to main content
Glama
vola-trebla

env-secret-exposure-analyzer-mcp

by vola-trebla

scan_git_history

Scan git history to uncover secrets (API keys, passwords, tokens) committed even if later deleted. Receive each finding with commit hash, severity, and rotation status.

Instructions

Scan the git commit history of a repository for secrets that were ever committed, even if later deleted. Detects hardcoded API keys, tokens, passwords, and other credentials added in diff hunks across recent commits. Returns each finding with its commit hash, file, line, severity, a masked preview, entropy score, whether the secret is still present in the working tree, and whether rotation is required. Respects .gitleaksignore.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_pathYesAbsolute path to the git repository root to scan
since_daysNoOnly scan commits from the last N days (default: 30)
last_n_commitsNoMaximum number of recent commits to scan (default: 50)
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses detection method (diff hunks), output fields, and respect for .gitleaksignore. However, it does not explicitly state read-only behavior or potential performance implications of scanning large histories.

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?

The description is composed of three efficient, front-loaded sentences. It packs a clear purpose, behavioral details, and a concise list of return fields without any fluff.

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?

The description gives enough detail for an agent to understand the tool's purpose, inputs, and outputs, including severity and rotation status. It lacks explicit failure modes and usage alternatives, but for a read-only scan tool with a well-described schema, it is mostly complete.

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 the baseline is 3. The description adds context around 'recent commits' which relates to since_days and last_n_commits but does not explain defaults or how the two parameters interact, adding only marginal value beyond the schema.

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?

The description uses a specific verb ('Scan'), specifies the resource ('git commit history of a repository'), and states the exact purpose ('for secrets that were ever committed, even if later deleted'). This clearly distinguishes it from siblings like scan_for_secrets by emphasizing historical commit detection.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description sets clear context for when to use the tool (scanning git history for secrets, including deleted ones) but does not explicitly mention alternatives or when not to use it. The sibling differentiation is implied through 'even if later deleted' rather than stated directly.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vola-trebla/env-secret-exposure-analyzer-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server