Skip to main content
Glama

scan_vulnerabilities

Scans code directories for security vulnerabilities using static analysis tools, with filters for severity, confidence, and git diff comparison.

Instructions

Scan a target directory for security vulnerabilities using a SAST tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
target_pathYesThe absolute path to the directory or file to scan.
scanner_nameNoThe scanner to use ('bandit', 'njsscan', 'bearer', 'semgrep'). Defaults to 'bearer'.bearer
min_severityNoMinimum severity to report (LOW, MEDIUM, HIGH, CRITICAL).LOW
min_confidenceNoMinimum confidence to report (LOW, MEDIUM, HIGH).LOW
git_diff_onlyNoIf true, only reports findings in files modified in git diff.
limitNoMaximum number of findings to return (for pagination).
offsetNoPagination offset.
output_formatNo'markdown' (human-readable, default) or 'json' (machine-readable list of findings for agents / CI).markdown
use_cacheNoIf true, reuse the last cached scan when the target's files are unchanged (incremental scan). Ignored when git_diff_only is set.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description must convey behavioral traits. It only says 'scan' and 'SAST tool', leaving out whether the tool is read-only, requires permissions, or modifies the target.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is one sentence, which is concise but lacks structure. It is too brief to convey critical information about the tool's capabilities and limitations.

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

Completeness2/5

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

Given the tool has 9 parameters and many siblings, the description is incomplete. It omits details about prerequisites, scanning behavior, and how results are returned (though output schema exists).

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% with detailed parameter descriptions. The tool description adds no additional parameter-specific meaning beyond what the schema already provides, meeting the baseline.

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 clearly states the tool scans a directory for vulnerabilities using SAST, but does not differentiate it from sibling tools like scan_all or scan_image that may also scan directories.

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?

No explicit guidance on when to use this tool versus alternatives such as scan_all or scan_git_history. The description only implies usage for scanning a specific directory.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Skyrxin/sast-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server