Skip to main content
Glama
mcp-server-postgres

mcp-server-postgres

by Ismail-2001

list_tables

Lists all tables in a specified PostgreSQL schema so you can identify available tables before writing or validating SQL queries.

Instructions

Lists all tables in the specified schema.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_tables"
  }
}

Input Schema

NameRequiredDescriptionDefault
schemaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations exist, so the description carries the full burden; it implies a read-only listing but says nothing about permissions, whether system/catalog tables are included, or what the result looks like. It also does not resolve behavior when the schema argument is omitted.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single front-loaded sentence with no filler, which is structurally sound. However, the brevity comes from omission rather than economy, so the compactness does not fully serve the agent.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A list tool with no output schema, no annotations, and an undocumented optional parameter needs the description to cover return shape and default scope, and it covers neither. What remains is enough to guess the intent but not enough to call it correctly in edge cases.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With a single unspecified parameter at 0% schema description coverage, the description must compensate and does not: it never says whether 'schema' is optional (the schema marks it non-required), what the default is, or what format is expected. Saying 'the specified schema' actively implies the argument is required, which conflicts with the schema.

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 ('Lists all tables') and a scope ('in the specified schema'), which is unambiguous about what the call returns. It stops short of differentiating from siblings like schema_inspect or describe_table, so an agent must still infer which one enumerates tables versus inspecting structure.

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?

There is no when-to-use guidance, no prerequisites, and no mention of alternatives such as describe_table for column details. The agent is left to infer that this is the discovery step before inspecting a table.

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