Skip to main content
Glama
AleBrito124356

mcp-secret-sentinel

scan_git_range

Read-onlyIdempotent

Scan commits before pushing to detect exposed secrets like API keys and tokens. Reviews the range from base to head and returns redacted findings.

Instructions

Scan the commits in base..head: by default, what git push would send.

Run this before pushing. With the defaults it scans every commit on the current branch that its upstream does not have yet. If the branch has no upstream, the error says so: pass the branch you will push to as base (for example "origin/main").

Args: repo_path: Absolute path to a git repository (or any path inside one). base: Commits reachable from here are excluded (default "@{upstream}"). head: Last commit to include (default "HEAD"). max_commits: Scan at most this many of the newest commits in the range. max_findings: List at most this many findings, most severe first (default 200, 0 = no limit). When capped, the result adds truncated, total_findings, counts_by_severity, counts_by_pattern and top_files.

Returns: The standard redacted findings report with a "commit" field on each finding, plus "commits_scanned" and "range".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
baseNo@{upstream}
headNoHEAD
repo_pathYes
max_commitsNo
max_findingsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already confirm it is a safe, read-only, idempotent operation, and the description adds substantial context: the default upstream range, the error message when no upstream exists, how to work around it, truncation behavior for max_findings (which adds truncated, total_findings, etc.), and the return shape.

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?

Front-loads the core purpose, then uses labeled sections for guidance, arguments, and returns. Every sentence adds actionable detail without redundancy.

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

Completeness5/5

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

With no output schema, the Returns section describes the report fields; annotations cover safety; all parameters are documented; and error behavior is explained. Nothing needed to invoke the tool correctly is missing.

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

Parameters5/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 the full burden. Its Args section documents all five parameters with defaults, semantics, and edge cases (e.g., max_commits limits newest commits; max_findings 0 means no limit), fully compensating for the schema 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?

States a specific verb and resource ('Scan the commits in base..head') and clarifies the default range as 'what git push would send', which implicitly distinguishes it from scan_git_history and scan_git_staged by scope. However, it never names a sibling alternative, so it falls short of the explicit differentiation a 5 requires.

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?

Provides a clear when-to-use directive ('Run this before pushing') and explains default behavior plus error recovery. It does not state when not to use this tool or compare it to alternatives, so it lacks explicit exclusions.

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