Skip to main content
Glama

generate_row_level_security

Generate database Row-Level Security (RLS) policies for PostgreSQL, MySQL, or Supabase with role setup and migration scripts

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": {
      "database": "<database>"
    },
    "name": "generate_row_level_security"
  }
}

Input Schema

NameRequiredDescriptionDefault
tablesNo
databaseYes
policiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/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 usefully discloses the deliverables (role setup plus migration scripts), which tells the agent the output is code/DDL rather than a live change. However, it never states whether the tool connects to a database, whether it applies anything, or what permissions/inputs are required, so significant behavioral gaps remain.

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?

A single front-loaded sentence with no filler; the verb and resource come first and the qualifiers follow. It is tight, though it spends its limited length on targets rather than on usage or parameters.

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

Completeness2/5

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

For a code-generator with no output schema, no annotations, and zero parameter documentation, the description should explain input expectations and output shape. It gives a partial output sketch ('role setup and migration scripts') but leaves the two array parameters and the invocation contract unexplained.

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?

Schema description coverage is 0% for all three parameters. The description names the three database values, which maps loosely to the 'database' enum, but says nothing about what 'tables' or 'policies' mean or expect (table identifiers? policy name patterns? free-text rules?). With no schema documentation, this leaves two of three parameters undefined.

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 ('Generate') and resource ('Row-Level Security (RLS) policies') and scopes it to three named targets (PostgreSQL, MySQL, Supabase). It also lists the artifacts produced (role setup and migration scripts), which distinguishes it from sibling generators like generate_pod_security_policy or generate_security_headers without needing to name them.

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 statement of when to use this versus alternatives, no prerequisites (e.g., an existing schema definition or credentials), and no exclusions. The database list hints at the applicable contexts but implies rather than instructs.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.