Skip to main content
Glama
DB MCP Server

DB MCP Server

by HW-public

list_tables

Lists all tables in a schema, defaulting to the configured database, so you can discover available tables before querying or describing them.

Instructions

List all tables in a schema. Defaults to the configured default database.

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
schemaNoSchema/owner name. Defaults to connected user for Oracle or "public" for PostgreSQL.
dataSourceNoName of the data source to use (see list_data_sources). Defaults to the single configured database, if only one is connected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It does disclose the defaulting behavior (falls back to the configured default database), but says nothing about permissions, whether views or system tables are included, result format, or error handling.

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?

Two short sentences, front-loaded with the core action and immediately followed by the defaulting caveat. No wasted wording, though it is perhaps too terse for an unannotated tool.

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 two-optional-parameter read tool with no output schema, the definition covers the basic call path. It stops short of telling an agent what a result entry looks like or how listing behaves across multiple connected data sources.

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 description coverage is 100%, so both parameters are already documented with their per-database defaults in the schema. The description's mention of the default database merely restates that, adding no new syntax or format guidance.

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 all tables in a schema", and notes the default database fallback. It does not distinguish itself from siblings such as list_data_sources or describe_table, so an agent must infer the division of labor from names alone.

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?

Usage is only implied: discovery of table names in a schema. There is no explicit when-to-use versus describe_table (structure details) or list_data_sources (finding data sources), and no prerequisites are stated.

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