Skip to main content
Glama

Scan a project for AI-introduced security bugs

vibe_shield_scan

Scans a project directory or specific paths for security vulnerabilities such as leaked secrets, unguarded API routes, missing RLS and prompt injection, returning a grade, score and findings with file, line, CWE and fixes.

Instructions

Runs the 60-rule vibe-shield scanner over a project directory or a set of paths and returns the grade, score and every finding with its exact file, line, CWE and remediation steps. Call this after writing or modifying application code — API routes, server actions, database migrations, auth logic, environment variables, LLM calls or webhook handlers — and before reporting a task as complete. Also call it when the user asks for a security review or audit.

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": "vibe_shield_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum findings to return in the text summary. Default 25, 0 for all.
pathsNoExplicit files or directories to scan, instead of the whole project.
rulesNoRestrict to these rule ids or prefixes, e.g. ["VSB-CLIENT-001"] or ["VSB-DB-*"].
targetNoDirectory or file to scan. Relative paths resolve against the server working directory. Default: the working directory.
severityNoOnly return findings at or above this severity.
includeDocsNoInclude Markdown and documentation files.
includeTestsNoInclude test, spec and fixture files.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.2

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the output contents and the scope of the rule set, implying a read-only scan, but never states that it is non-destructive, whether it requires filesystem permissions, or how long a full-project scan takes.

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?

Two front-loaded sentences: capability and return value first, invocation timing second. The long list of code categories is bulky but each item narrows the trigger condition, so little is wasted.

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 7 optional parameters, no annotations and no output schema, the description compensates well for the missing output schema by naming grade, score and finding fields. It does not cover what happens with no parameters supplied beyond the schema's default note, or how findings are ordered when limit truncates results.

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 coverage is 100%, so every parameter including limit, rules and severity is already documented with defaults and examples. The description adds only the loose mapping of "project directory or a set of paths" to target/paths, which the schema already conveys.

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?

States a concrete verb and resource ("Runs the 60-rule vibe-shield scanner over a project directory or a set of paths") plus the exact return shape (grade, score, findings with file, line, CWE, remediation). An agent can distinguish this from vibe_shield_explain_rule purely from the text.

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?

Gives explicit trigger conditions: after writing or modifying app code (with a concrete list of code categories) and before reporting a task complete, plus on user requests for a security review. It lacks any when-not guidance or named alternative among the sibling tools, which keeps it below a 5.

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