Skip to main content
Glama
anythink-cloud

Anythink-MCP

Official

Data: rls

data_rls
Destructive

View or grant row-level security access to a record: list users with access or grant a user full/read-only access. Only works on entities with RLS enabled; cannot remove access.

Instructions

View or set RLS (row-level security) user access on a record. Without a user id, returns the users who have row-level security (RLS) access to the record, with their names and whether access is read-only. With a user id, grants that user access to the record, full by default or read-only when asked. It cannot remove access, and only matters on entities with RLS turned on. It changes or deletes existing data, so check with the user before running it.

Input Schema

NameRequiredDescriptionDefault
idYesRecord ID. Find it with data_list.
userNoUser ID to grant access to
entityYesEntity name
readonlyNoGrant read-only access (default: full access)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.37
    • changedInput schema / properties / id / description
      Previous value: -"Record ID"New value: +"Record ID. Find it with data_list."
  2. Addedv0.2.27

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds genuine context beyond them: the hard limitation that it cannot remove access, the RLS-enabled-entity precondition, and the instruction to confirm with the user first. The phrase 'changes or deletes existing data' is slightly loose given it cannot remove access, but it is not a contradiction.

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?

Front-loaded with the core purpose and structured as view-then-set-then-caveats. It is five sentences and repeats the '(row-level security (RLS))' expansion twice, a minor redundancy, but no sentence is wasted.

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?

Despite having no output schema, the description explains the return shape (users with names and read-only status). Combined with annotations covering the safety profile and 100% parameter coverage, an agent has everything needed to invoke it correctly.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: the presence/absence of `user` toggles the tool between read and grant mode, and `readonly` is described as defaulting to full access. That enriches the schema's terse flag descriptions.

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 specific verb and resource ('View or set RLS user access on a record') and immediately clarifies the dual-mode behavior (view vs grant) based on whether a user id is supplied. This is clearly distinct from the surrounding data_create/data_update/data_delete CRUD siblings.

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?

Explicitly maps the two usage modes: without a user id it reads access, with a user id it grants access. It also gives a meaningful precondition ('only matters on entities with RLS turned on') and a caution ('check with the user before running it'). It stops short of naming an alternative tool, so it lands just below the top band.

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

Deploy Server

Other Tools