Skip to main content
Glama
ZERONOVA LAB MCP Server

ZERONOVA LAB MCP Server

check_rls_config

Audit Supabase Row Level Security in SQL migrations to detect disabled RLS, missing policies, permissive USING(true) rules, and missing FORCE RLS, returning severity, file paths, and fix snippets.

Instructions

Check Supabase Row Level Security (RLS) configuration in a project. Analyzes SQL migration files for tables without RLS enabled, tables with RLS but no policies (accidental lockout), permissive USING(true) anti-patterns, and missing FORCE ROW LEVEL SECURITY. Returns findings with severity, file paths, and fix SQL snippets.

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": {
      "project_path": "<project_path>"
    },
    "name": "check_rls_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_pathYesAbsolute path to the project directory to audit. Must be a directory you own or manage.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the specific anti-patterns detected and the shape of the output (findings with severity, file paths, and fix SQL snippets). It does not explicitly state that the tool is read-only and never modifies files, nor whether analysis is static parsing of migration files — a small but real gap for a tool pointed at a project directory.

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?

Three sentences, front-loaded with the purpose and then the detection categories and return format. No marketing language, no repetition of the tool name, and each clause contributes information an agent can act on.

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?

For a single-parameter read-only audit tool with no output schema, the description covers intent, detection categories, and return contents well. The remaining omission is scope detail — which files under project_path are actually examined — but nothing critical for correct invocation is missing.

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?

There is one parameter with 100% schema description coverage, so the schema already defines project_path as an absolute directory path. The description adds no further meaning about scoping — such as whether it recurses the whole tree or only a migrations directory — so the baseline of 3 applies.

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 states a specific verb and resource ('Check Supabase Row Level Security (RLS) configuration in a project') and then enumerates exactly what is audited: tables without RLS, RLS without policies, USING(true) anti-patterns, and missing FORCE RLS. This is clearly distinguishable from the sibling check_* tools, which target site headers, auth, SEO, and other non-Supabase concerns.

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 — an agent can infer this is for auditing a Supabase project's SQL migrations, but there is no explicit when-to-use statement, no prerequisites (e.g., that the project must contain Supabase SQL migrations for meaningful results), and no named alternative or exclusion. The boundaries with siblings are inferable from the subject matter rather than from the text.

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