Skip to main content
Glama
gokiwitech

pgwarden-mcp

by gokiwitech

list_objects

Read-only

List database objects (tables, views, sequences, extensions) in a specified Postgres schema. Provide a schema name to get an inventory of objects, optionally filtered by type for targeted discovery.

Instructions

List objects in a schema

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
databaseNoOptional. Alias of the configured database to query. Omit it when the server has only one database configured. When several are configured this parameter is required - call list_databases first to learn the valid aliases.
object_typeNoObject type: 'table', 'view', 'sequence', or 'extension'table
schema_nameYesSchema name

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

Annotations include readOnlyHint=true, so the read-only nature is already disclosed. The description adds no further behavioral context such as pagination, ordering, limits, or performance implications. Since the description carries the burden when annotations are sparse, this one-liner contributes little beyond the annotation itself.

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?

The description is a single sentence that is clear and to the point. It front-loads the purpose and contains no redundant phrases. This is an example of appropriate conciseness, though it may be too terse for behavioral transparency.

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?

An output schema exists, so return values are covered. The parameter schema documents all fields including optional database and object_type with defaults. The description, while minimal, is sufficient for a straightforward list operation; nothing critical is missing that an agent would need to invoke it correctly.

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%, meaning all parameters (database, object_type, schema_name) have descriptions in the input schema. The tool description does not add any parameter-related meaning beyond what the schema already provides. Baseline 3 applies because the schema fully documents parameters, and the description adds no extra value.

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 clearly states a verb (list) and resource (objects in a schema). It distinguishes itself from siblings like list_databases and list_schemas by targeting objects within a schema, though it doesn't explicitly contrast with get_object_details which focuses on a single object's details. The core purpose 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 Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It does not mention that get_object_details is for fetching details of a single object, or that list_schemas/list_databases serve different scopes. An agent would have to infer usage from the schema and sibling names.

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