Skip to main content
Glama

preview_row_rules

Read-only

Admin only. How many rows of a table a given person sees under the current rules (total vs visible). Use it after set_row_rule, before telling anyone a rule works.

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": {
      "resource": "<resource>",
      "user_id": "<user_id>"
    },
    "name": "preview_row_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
user_idYesID of the user
resourceYesTable whose visible row count is checked

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / resource / description
      Added value: +"Table whose visible row count is checked"
    • addedInput schema / properties / user_id / description
      Added value: +"ID of the user"
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is known; the description adds 'Admin only', a permission prerequisite annotations do not express, and clarifies that the result compares total against visible rows. No statement of cost, caching, or side effects, but for a read-only preview that is a minor gap.

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 short sentences, front-loaded with the admin restriction, then purpose, then usage timing. Nothing is redundant and no sentence is wasted.

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 two-parameter, no-output-schema preview tool, the description covers who may call it, what it computes, and when to call it, including the total-vs-visible distinction that substitutes for a documented return type. Only the table enum values are left entirely to the schema, which is appropriate.

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?

Schema coverage is 100%, including the enum of allowed tables, so the parameters are already fully documented. The description only restates them in prose ('a given person', 'of a table') without adding format or constraint detail beyond the schema, which matches the baseline 3.

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?

The description states a concrete outcome: how many rows of a named table a given person can see under current rules, split into total vs visible. That is specific enough to distinguish it from set_row_rule and list_row_rules, though it is phrased as a question rather than an explicit verb+resource.

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?

It gives explicit sequencing guidance — call it after set_row_rule and before telling anyone a rule works — which tells the agent exactly where this fits in a workflow. It stops short of naming when not to use it or pointing to list_row_rules as an alternative for inspection.

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.