Skip to main content
Glama
kl987456
by kl987456

code_security_scan

Read-onlyIdempotent

Scan a target repository for vulnerabilities and exposed secrets using operator-installed Semgrep and Gitleaks from a disposable copy, with fallbacks when tools are not configured.

Instructions

Run operator-installed Semgrep (SAST) and Gitleaks (secret detection) against the target repository from a disposable copy; each is independently optional and reports an honest fallback when not configured.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeoutNo
repo_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/non-destructive, and the description adds meaningful context beyond them: scanning happens 'from a disposable copy' (no repo mutation) and unconfigured scanners return an 'honest fallback' rather than silently failing. It omits runtime/rate characteristics and what a fallback report looks like.

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?

A single dense sentence that front-loads the action and tooling with no filler. It is slightly packed with parenthetical definitions, but every clause earns its place.

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 gap, the description covers the operator-configuration model and safety posture, which is the key complexity. It still leaves parameter meaning and result shape unaddressed, so it is adequate rather than complete.

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

Parameters2/5

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

Schema description coverage is 0% for two parameters, yet the description never mentions repo_path or the timeout (and its 120s default). With no schema descriptions, the description was the only place to compensate for the coverage gap, and it does not.

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?

Names the concrete tooling (Semgrep SAST, Gitleaks secret detection) and the target (a repository), so the agent knows exactly what analysis runs. It stops short of distinguishing itself from close siblings like security_scan and vulnerability_scan, which likely also run scans.

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?

There is no statement of when to prefer this over security_scan or vulnerability_scan, nor any prerequisites or exclusions. The note that sub-scanners are 'independently optional' hints at configurability but gives no routing guidance.

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