Skip to main content
Glama

Scan code for security issues

codeinspectus_scan
Read-onlyIdempotent

Run a comprehensive local security scan combining SAST, secrets, SCA, IaC, and AI-code checks. Detects vulnerabilities with CWE-keyed findings and fix recommendations, fully offline.

Instructions

Run a full local security scan of a path: bundled engines (Opengrep SAST, Gitleaks secrets, Trivy SCA/IaC/license) plus CodeInspectus's AI-code-specific checks (client-side secret exposure, Supabase RLS/inverted-auth, prompt-injection sinks). Returns CWE-keyed findings with fix recommendations and compliance tags. Fully offline — zero network egress at scan time. Never writes to your code or repo.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAbsolute path to the repository or directory to scan.
scannersNoLimit which scanner classes run: sast, secret, vuln, misconfig, license, ai. Default: all.
max_findingsNoCap the number of findings returned to protect agent context (default: 200).
include_complianceNoInclude the per-framework compliance overview in the result (default: true).
severity_thresholdNoOnly return findings at or above this severity (default: info — all).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetYes
offlineYes
scan_idYes
summaryYes
findingsYes
warningsYes
truncatedYes
disclaimerYes
git_safetyYes
started_atYes
duration_msYes
engines_runYes
trivy_db_dateNo
engine_detailsYes
compliance_overviewNo
total_findings_before_limitYes
Behavior5/5

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

Annotations already indicate read-only, idempotent, non-destructive behavior. The description adds critical context: zero network egress, no code writes, and output format (CWE-keyed with fix recommendations). This goes beyond annotations to fully inform the agent.

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 three sentences with no wasted words. Purpose is first, then engines and output, then safety guarantees. Every sentence contributes essential information.

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?

Given the tool's complexity (5 parameters with enums, output schema exists) and rich annotations, the description covers purpose, behavior, output, and safety comprehensively. It provides enough for an agent to decide when and how to invoke it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema covers all parameters (100% coverage), so baseline is 3. The description adds value by explaining the bundles engines and output type, which helps understand parameters like 'scanners' (which enums) and 'include_compliance'. It provides context beyond the schema.

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 'run[s] a full local security scan of a path' and enumerates the specific engines (Opengrep SAST, Gitleaks secrets, Trivy SCA/IaC/license, AI checks), making the purpose unmistakable. It differentiates from siblings like codeinspectus_compliance_report or codeinspectus_generate_sbom by focusing on a comprehensive scan.

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?

The description implies usage for security scanning and highlights safety ('Fully offline', 'Never writes'), which guides when to use it. However, it lacks explicit when-not-to-use or direct comparisons to sibling tools like codeinspectus_rescan or codeinspectus_list_rules.

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/Synvoya/codeinspectus'

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