Skip to main content
Glama

devanvil_scan_directory

Recursively scan a local directory for leaked secrets, respecting .gitignore and skipping binaries and node_modules; optionally return SARIF 2.1.0 for code scanning.

Instructions

Recursively scan a local directory for leaked secrets (respects .gitignore, skips binaries/node_modules) and optionally return SARIF 2.1.0.

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": {
      "directory": "<directory>"
    },
    "name": "devanvil_scan_directory"
  }
}

Input Schema

NameRequiredDescriptionDefault
sarifNoReturn SARIF 2.1.0 JSON format for GitHub Code Scanning.
directoryYesPath to directory or file to scan.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It usefully discloses recursion, .gitignore handling, and skipping of binaries/node_modules, but it says nothing about the default return shape, permissions, or how findings are reported when SARIF is not requested.

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?

It is a single, front-loaded sentence with no wasted wording. The parenthetical efficiently carries the scan-scope behavior alongside the core purpose.

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 two-parameter tool with no output schema, the definition is close to adequate but not complete. It should say what a non-SARIF result looks like and how this differs from the sibling secrets scanner.

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 coverage is 100%, so both parameters are already documented in structured form. The description reinforces the directory scope and the optional SARIF 2.1.0 output, but adds no syntax, path conventions, or edge-case semantics 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 states a specific verb and resource: recursively scan a local directory for leaked secrets. It is clear on its own, but it does not distinguish itself from the sibling devanvil_scan_secrets, leaving an agent to infer which scanning tool to pick.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no alternative tool is named. With a close sibling like devanvil_scan_secrets present, the absence of routing guidance is a real gap.

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