Skip to main content
Glama

check_rls

Read-only

Prove the database is enforcing isolation on this connection, rather than trusting the server code: reports the user id Postgres sees, attempts a write the policy must refuse, and counts cross-tenant rows visible without an explicit filter (must be 0). Read-only apart from one probe insert that is expected to fail.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Adds real value beyond the {readOnlyHint: true, openWorldHint: false} annotations: it discloses that one probe write is issued and is expected to fail, and that the cross-tenant count must be 0, which is the interpretive key for the result. This is consistent with readOnlyHint since the insert is designed to be rejected, though a note on what a failure of the probe implies would push it higher.

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?

A single dense sentence that front-loads the purpose before the mechanics, with a closing clause that preempts the obvious concern about a write operation. No filler and nothing repeated from structured fields.

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

Completeness5/5

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

For a zero-parameter tool with no output schema, the description covers intent, the three reported signals, their expected values, and the read-only caveat. An agent has everything needed to decide to run it and to interpret a non-zero cross-tenant count as a failure.

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?

The tool takes zero parameters, so there is no parameter semantics to get wrong; the baseline for a no-param schema applies. The description correctly spends no words on inputs and instead covers behavior and expected outputs.

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?

Specific verb and resource: 'prove the database is enforcing isolation on this connection' plus an enumeration of the three concrete checks it performs (visible user id, refused write, cross-tenant row count). An agent knows exactly what this tool does; no sibling in the catalog does anything remotely similar, so differentiation is moot.

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?

The framing 'rather than trusting the server code' makes the intended context explicit: it is a verification/audit tool to be used when you need evidence that row-level security is actually enforced, not merely assumed. It stops short of stating exclusions (e.g. do not run against production, or cost/frequency limits), which is why it is not a 5.

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.