Skip to main content
Glama
codedev-mcp

codedev-mcp

by Kranthithota

security_scan

Read-onlyIdempotent

Scans a codebase for hardcoded secrets, SQL injection, XSS, insecure crypto, eval usage, and path traversal, then filters findings by category, severity, or file pattern.

Instructions

Scan codebase for security issues: hardcoded secrets, SQL injection, XSS, insecure crypto, eval usage, path traversal, and more. SAST-lite with no external dependencies.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "security_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
categoryNoFilter by category: injection, xss, secrets, crypto, config, auth, redirect, error-handling
severityNoFilter by severity: critical, high, medium, low
file_globNoFilter by file pattern

Output Schema

NameRequiredDescriptionDefault
totalYes
issuesYes
severityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.5

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is covered. The description adds genuine value beyond that by characterizing the analysis as "SAST-lite with no external dependencies" — signaling pattern-based detection, no network/toolchain requirements, and likely shallower depth than a full SAST engine. It does not state scan scope (whole workspace vs. working tree, generated/vendored file handling), which is the remaining gap.

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?

Two sentences, front-loaded with the verb and resource, then the capability list, then the one-line qualifier about depth and dependencies. Nothing is redundant or buried.

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

Completeness4/5

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

An output schema exists, so return values need not be explained, and all parameters are optional filters that are fully documented in the schema. What remains unstated is scan scope and how the result relates to the overlapping find_secrets / dep_vuln_scan siblings — modest but real gaps for a security tool.

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 all three filters (category, severity, file_glob) are already documented, including the category values. The description's category list largely restates what the schema carries, adding no syntax, default, or combinatory semantics beyond it. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

States a specific verb and resource ("Scan codebase") and enumerates the concrete issue classes it detects: secrets, SQL injection, XSS, crypto, eval, path traversal. The overlap with the sibling find_secrets (hardcoded secrets) and dep_vuln_scan is never acknowledged, so an agent cannot fully disambiguate from the name alone.

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 enumeration of issue categories — an agent can infer "use for security review." There is no explicit when-to-use, no when-not-to-use, and no routing to find_secrets for a targeted secret hunt or to dep_vuln_scan for dependency CVEs.

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