Skip to main content
Glama
@guardbee/mcp-security-proxy

@guardbee/mcp-security-proxy

Official

prompt_leak_scanner__scan_directory

Recursively scans prompt logs and request-body fixtures in a directory to detect leaked credentials, secrets, and PII before exposure.

Instructions

Recursively scan a directory of prompt logs or request-body fixtures for leaked credentials and PII

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute or relative path to the directory to scan
excludeNoSkip files/dirs whose path contains one of these strings
includeNoOnly scan files whose path contains one of these strings
maxFilesNoMaximum number of files to scan (default: 5000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.5
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Addedv0.1.1

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose two real behavioral traits: the scan recurses into subdirectories, and it is scoped to prompt-log/request-body material. It says nothing about whether files are modified, how findings or truncation are reported, or what happens when maxFiles is reached, which leaves meaningful gaps for an unannotated tool.

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?

One sentence, front-loaded with the action and scope, with zero filler. Nothing is redundant or buried.

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?

Parameter semantics are fully covered by the schema and recursion is stated, but with no output schema an agent still cannot anticipate the return shape (findings list? counts? per-file grouping?) or how include/exclude and maxFiles interact with results. Adequate but not complete for a scanner the agent must interpret output from.

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%, and all four parameters (path, exclude, include, maxFiles) are documented in the schema itself. The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

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?

A specific verb ('Recursively scan') plus resource ('a directory') plus target of detection ('leaked credentials and PII'). It implicitly distinguishes itself from scan_file/scan_text siblings via the directory scope, though it never names them; adding 'use scan_file for a single file' would have pushed this to 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 only implied through the material it targets ('prompt logs or request-body fixtures'). There is no statement of when to prefer this over prompt_leak_scanner__scan_file or scan_text, no prerequisites, and no exclusions such as binary or ignored file types.

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