Skip to main content
Glama

scan_red_flags

Detect static security red flags in a project directory, such as client-trusted roles or pricing, unverified webhooks, raw-HTML XSS sinks, and exposed .env files.

Instructions

Preflight checks #3/#5/#6/#8 as static signals (port of scan-red-flags.sh): role/plan/price read from the request body, premium decided in localStorage, webhook handlers without signature-verification markers, raw-HTML XSS sinks, Supabase/Firebase client usage, .env files present. Every finding is confidence 'sinal'.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "target": "<target>"
    },
    "name": "scan_red_flags"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYesAbsolute or relative path to the project directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does convey useful behavior beyond the name: the analysis is static (implying no code execution), and every finding carries confidence 'sinal' - which is a real disclosure about output semantics. It does not state whether the scan is read-only, whether findings include file/line locations, or anything about cost/scope on large projects.

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?

It is a single sentence with no fluff in the middle, but it is front-loaded with opaque references ('Preflight checks #3/#5/#6/#8', 'port of scan-red-flags.sh') that consume attention without telling an agent anything actionable. The genuinely informative checklist content is buried after that preamble.

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, the description is the only source of truth, and it covers what is checked plus the confidence labelling, which is adequate for a one-parameter scanner. It omits the shape of results (file paths, line numbers, severity, grouping) and any statement that the scan is non-mutating, leaving real gaps for an agent deciding whether to call 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?

There is a single required parameter and the schema documents it fully ('Absolute or relative path to the project directory'), so schema coverage is 100% and baseline is 4. The description adds no additional path semantics, but none is needed for one well-documented parameter.

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 enumerates concrete detection targets (role/plan/price in request body, localStorage premium checks, unsigned webhook handlers, raw-HTML XSS sinks, Supabase/Firebase client usage, .env files), which makes the tool's job identifiable as static project scanning. However, it never states a verb ('scans the target directory for...') and never distinguishes it from siblings such as scan_secrets, which plausibly overlaps on the '.env files present' check.

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 when-to-use, when-not-to-use, or alternative guidance at all. The phrase 'static signals' implicitly contrasts with a runtime/dynamic tool like probe_exposure, but the agent must infer that entirely; no prerequisites or preconditions for running it are given.

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