Skip to main content
Glama
MCP Project Context Server

MCP Project Context Server

db_list_tables

Lists all tables in a project's PostgreSQL database, optionally detecting the project automatically, so you can inspect available schema objects.

Instructions

Lista todas as tabelas do banco de dados PostgreSQL do projeto

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": "db_list_tables"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectNoNome do projeto (opcional, detecta automaticamente se não fornecido)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It implies a read-only enumeration and mentions that the database is PostgreSQL, but says nothing about connection/auth requirements, which schemas or object types (views, system tables) are included, or how large the resulting list may be.

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

Conciseness4/5

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

One short sentence, front-loaded with the verb and resource, with no filler. It is efficient, though so terse that some useful context (scope, return shape) is absent rather than merely compressed.

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

Completeness3/5

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

For a simple, single-optional-parameter read tool with no output schema or annotations, the description is adequate to identify the purpose. It nonetheless leaves open what the returned table list contains and any prerequisites for the auto-detected project.

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?

There is a single optional parameter and schema coverage is 100%, with the schema already stating that the project auto-detects when omitted. The description adds no meaning beyond that, so the baseline of 3 applies.

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 states a specific verb and resource: it lists all tables of the project's PostgreSQL database. That is clear enough for an agent to distinguish it from db_describe_table (single table details) and db_query (arbitrary queries), but the separation is inferred rather than stated.

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 text offers no explicit when-to-use or when-not-to-use guidance and never mentions the sibling tools (db_query, db_describe_table) that an agent would choose between. Only the bare purpose implies a usage context.

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