Skip to main content
Glama
Teja-sudo

postgres-mcp-server

by Teja-sudo

list_schemas

List all schemas in the connected PostgreSQL database. Optionally include system schemas or use one-time server/database/schema overrides.

Instructions

List all schemas in the current database. Requires active connection (use switch_server_db first). Optionally use server/database/schema params for one-time execution on a different server without changing the main connection.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
includeSystemSchemasNoInclude system schemas (pg_catalog, information_schema, etc.)
serverNoOne-time server override. Execute on this server without changing main connection.
databaseNoOne-time database override. Uses this database for execution without changing main connection.
schemaNoOne-time schema override. Sets search_path for this execution only.
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool lists schemas, requires a connection, and allows temporary overrides. It does not mention security or performance, but for a read-only listing these are less critical. The inclusion of the includeSystemSchemas parameter downstream adds 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 sentences with front-loaded purpose and key usage conditions. No extraneous information. Every sentence contributes to understanding.

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?

Given the schema covers params and there is no output schema, the description is fairly complete. It could mention the default filtering of system schemas or the return format, but the presence of the includeSystemSchemas param and the listing nature makes it adequate.

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?

The input schema has 100% description coverage. The description adds value by explaining that server, database, and schema params are for one-time overrides without changing the main connection, which is not evident from schema descriptions alone.

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 the verb 'List' and the resource 'schemas in the current database'. It differentiates from sibling tools like list_databases and list_objects by specifying the target is schemas, and mentions the one-time override params that are unique to this tool.

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?

The description explicitly states the prerequisite 'Requires active connection (use switch_server_db first)' and explains when to use the optional override params for one-time execution. It does not explicitly list alternatives or when not to use, but the context is clear and actionable.

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/Teja-sudo/postgres-mcp-server'

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