Skip to main content
Glama
AleBrito124356

mcp-secret-sentinel

scan_directory

Read-onlyIdempotent

Recursively scans a directory tree for exposed secrets, skipping common non-source files. Returns redacted findings with relative paths.

Instructions

Recursively scan a directory tree for exposed secrets.

Automatically skips .git, node_modules, virtualenvs and conda envs under any name, site-packages, tool caches (.tox, .nox, .mypy_cache, .pytest_cache, .ruff_cache), pycache, dist, build, minified JS bundles, lockfiles, binaries, files over 5 MB, and simple patterns from the root .gitignore (best-effort: no negations, no ** globs).

Args: path: Absolute path to the directory to scan. max_files: Stop after scanning this many files (default 500). 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; finding paths are relative to the scanned root, using forward slashes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
max_filesNo
max_findingsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), yet the description adds substantial behavioral context beyond them: the exact skip list, the 5 MB file cap, best-effort .gitignore handling with its limitations, and truncation semantics when max_findings is hit.

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?

Front-loaded with the purpose, then structured Args/Returns sections. The skip list is long but each entry is informative; the only mild bloat is enumerating cache dirs that could be summarized.

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?

No output schema exists, and the description compensates by describing the return shape (redacted findings report, root-relative forward-slash paths) and the truncation metadata. All three parameters and their edge cases are covered.

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 carries the burden and does so fully: path is documented as an absolute path, max_files and max_findings carry defaults and precise semantics ('0 = no limit'), plus the derived truncation fields emitted when capped.

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+resource+scope: 'Recursively scan a directory tree for exposed secrets.' An agent can tell it apart from scan_file/scan_text/scan_git_* by inference from 'directory tree', but no sibling is named explicitly, so it stops short of a 5.

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 resource ('scan a directory'), but there is no explicit when-to-use statement, no prerequisites, and no guidance on choosing this over scan_file or scan_text when a whole tree is not needed.

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