Skip to main content
Glama
supabase-rls-check

supabase-rls-check

Explain rule

explain_rule
Read-onlyIdempotent

Clarifies what a Supabase RLS check rule detects, its caveats, and remediation steps so you can resolve flagged Row Level Security issues.

Instructions

Explain what a supabase-rls-check rule detects, caveats, and how to remediate it.

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": {
      "rule": "<rule>"
    },
    "name": "explain_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
ruleYes

Output Schema

NameRequiredDescriptionDefault
resultYes

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?

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered by structured data. The description adds real content by naming the three sections of the response (what is detected, caveats, remediation), which tells the agent the answer is explanatory rather than just echoing metadata. It says nothing about behavior on an unknown rule or about examples/severity fields, so the addition is modest rather than rich.

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?

One front-loaded sentence with no filler; the verb and scope lead and the enumerated outputs follow. It is efficient, though slightly terse for the amount of unexplained behavior it leaves behind.

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?

An output schema exists, so the return shape need not be described, and the sentence correctly characterizes the content of that output. What is missing is anything about valid rule values, expected errors for an unknown rule, or the relationship to list_rules, which leaves an agent under-informed about a simple but underspecified input.

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?

The single parameter 'rule' has 0% schema description coverage, and the description does not compensate: it never says whether 'rule' is a rule identifier, a name, or a detection category, nor how to obtain a valid value. For a one-parameter tool at zero coverage, that is the main documentation gap.

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 (explain) and resource (a supabase-rls-check rule) and enumerates what the explanation covers: what it detects, caveats, remediation. It does not distinguish itself from the sibling list_rules, so an agent still has to infer that this is the per-rule lookup while list_rules enumerates them.

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: call it when you have a single rule whose detection logic, caveats or fix you need. There is no explicit statement about when not to use it, no mention of list_rules as the way to discover rule identifiers, and no prerequisite/error guidance.

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