Skip to main content
Glama
Azzaraell

pgguard-mcp

by Azzaraell

sample_rows

Read rows from allowlisted tables with simple filters (eq, lt, lte, gt, gte, contains) and a configurable row limit.

Instructions

Read rows from one allowlisted table with simple filters (eq/lt/lte/gt/gte/contains) and a limit. Prefer this over run_query for straightforward lookups; use run_query for joins and aggregations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoRow cap; values above the policy cap are clamped to it
tableYesQualified table name, e.g. "public.orders"
filtersNoSimple equality/range/contains filters, ANDed together
Behavior4/5

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

No annotations exist, so the description carries full burden. It discloses the read-only nature and filter capabilities, but does not describe return format or default limit behavior, which would enhance transparency.

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?

Two efficient sentences: first defines purpose and capabilities, second offers usage guidance. No redundant words, front-loaded with key information.

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 read tool with three parameters and no output schema, the description adequately covers purpose, filters, and sibling differentiation. Missing output format description is a minor gap, but overall complete enough.

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?

All three parameters have schema descriptions (100% coverage), so baseline is 3. The tool description adds minimal extra meaning beyond the schema, only reiterating filter simplicity and limiting.

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?

The description clearly states it reads rows from one allowlisted table with specific filter operations and a limit, and distinguishes itself from sibling 'run_query' by specifying its use case for straightforward lookups versus joins/aggregations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly advises when to use this tool ('straightforward lookups') and when to use the alternative 'run_query' (joins and aggregations), providing clear context for selection.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Azzaraell/pgguard-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server