Skip to main content
Glama
ranson21

postgres-readonly-mcp

by ranson21

list_schemas

List PostgreSQL database schemas, excluding system schemas by default; optionally include pg_catalog, information_schema, pg_temp, and pg_toast schemas.

Instructions

List schemas in the database. Excludes system schemas by default. Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
envNoWhich configured database environment to use. Only "default" is configured, so this can be omitted.
include_systemNoInclude pg_catalog/information_schema/pg_temp_*/pg_toast* schemas

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose read-only status and the default exclusion of system schemas, which is genuinely useful. However, it omits anything about permissions, result size/pagination, or ordering of the returned schemas.

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 core action and free of filler. Every clause adds information (scope, default behavior, safety).

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 simple zero-required-parameter listing tool with full schema coverage and no output schema, the description covers what it does, its default filtering, and its safety profile. A brief note on the returned fields would make it fully complete.

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%, so both parameters are already documented by the schema; baseline is 3. The description's 'excludes system schemas by default' reinforces the include_system parameter, but adds no syntax or format detail beyond the schema text.

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 and resource ('List schemas in the database') in the first sentence, which clearly separates it from siblings like list_tables and list_environments. It does not explicitly name alternatives, but the resource distinction is unambiguous.

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

Usage Guidelines3/5

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

Gives a default-behavior cue ('Excludes system schemas by default'), which implies the common case, but never says when to choose this over list_tables or describe_table, nor any prerequisites. Usage is implied rather than stated.

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