Skip to main content
Glama

scan_security

Read-onlyIdempotent

Scan project files to detect OWASP Top-10 security vulnerabilities like SQL injection and XSS using pattern matching. Returns actionable findings in JSON.

Instructions

Scan project files for OWASP Top-10 security vulnerabilities using pattern matching. Detects SQL injection (CWE-89), XSS (CWE-79), command injection (CWE-78), path traversal (CWE-22), hardcoded secrets (CWE-798), insecure crypto (CWE-327), open redirects (CWE-601), and SSRF (CWE-918). Skips test files. Use for pattern-based security audit. For data-flow-aware analysis use taint_analysis instead. Read-only. Returns JSON: { findings: [{ rule, severity, cwe, file, line, message }], total, summary }.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeYesDirectory to scan (default: whole project)
rulesYesRules to apply (use ["all"] for full scan)
severity_thresholdNoMinimum severity to report (default: low)
Behavior4/5

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

Annotations already mark it as read-only, idempotent, and non-destructive. The description confirms read-only and adds the output format and file-skipping behavior. No contradictions; annotations are well-supported.

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?

The description is concise (about 80 words), front-loads the purpose, lists vulnerabilities, gives usage guidance, and ends with output format. Every sentence adds value.

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?

Despite no output schema, the description details the return JSON structure (findings array with fields like rule, severity, cwe, etc.) and covers operation, scope, exclusions, and alternatives. It is complete for the tool's complexity.

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 schema fully defines parameters. The tool description does not add extra meaning beyond the schema, earning the baseline score of 3.

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?

The description clearly states the tool scans for OWASP Top-10 vulnerabilities using pattern matching, lists specific CWEs, and distinguishes itself from the sibling taint_analysis by noting it is for pattern-based audits. It leaves no ambiguity.

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

Usage Guidelines4/5

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

It explicitly advises use for pattern-based security audit and recommends taint_analysis for data-flow-aware analysis. It also mentions skipping test files, providing practical guidance. However, it lacks broader when-not-to-use scenarios.

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/nikolai-vysotskyi/trace-mcp'

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