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

@guardbee/mcp-security-proxy

Official

model_scanner__scan_directory

Recursively scan a directory for machine learning model files and report supply-chain risks in each, skipping common non-model folders like node_modules and .git.

Instructions

Recursively scan a directory for ML model files (.pt, .pth, .ckpt, .pkl, .pickle, .bin, .dill, .joblib, .jbl, .npy, .npz, .safetensors, .h5, .hdf5, .keras, .onnx, .gguf, .pb, .pbtxt, .tflite; a TensorFlow SavedModel directory through its saved_model.pb) and report supply-chain risks in each. Automatically skips node_modules, .git, venv, and other non-model directories.

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: 2000)

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.6/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does disclose two genuinely useful behaviors: automatic exclusion of node_modules/.git/venv, and per-file risk reporting (with the 2000-file default living in the schema). It never states that the scan is read-only/non-mutating, says nothing about performance cost or timeouts on large trees, and does not describe the shape of the findings.

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 verb and scope, then the extension list, then the skip behavior. The long enumeration of extensions is verbose but earns its place by telling the agent exactly which artifacts are in scope. Slightly dense in a single sentence.

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?

With no output schema and no annotations, the description should explain what a scan returns (findings list? per-file verdicts? severity?), and it only says 'report supply-chain risks in each.' Parameters are fully covered by the schema, so the gap is entirely on the return-value and safety side.

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 contributes indirectly — the extension whitelist clarifies what the include/exclude substring filters operate against — but it says nothing about how include and exclude interact when both are supplied, nor about the maxFiles truncation consequence.

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?

States a specific verb and resource ('Recursively scan a directory'), enumerates exactly which model file types qualify, and calls out the SavedModel-via-saved_model.pb special case. The directory scope makes it trivially separable from model_scanner__scan_file and model_scanner__scan_hf_repo.

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 by the resource type — an agent infers 'use this when you have a local directory, use scan_file for a single artifact.' There is no explicit when-to-use/when-not statement and no mention of the sibling tools by name, though the auto-skip list gives useful operating context.

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