Skip to main content
Glama
igorolv

jdbc-mcp-server

listTables

listTables
Read-onlyIdempotent

Enumerate table and view names in a database schema, optionally filtered by name or type. Does not return columns; use describeTable for one object's structure.

Instructions

Enumerate table and view names in a known schema, optionally filtered by name or type. Does not return fields/columns; use describeTable for one object's structure.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typesNoJDBC table types CSV (default TABLE,VIEW,MATERIALIZED VIEW): TABLE,VIEW,MATERIALIZED VIEW,SYSTEM TABLE,GLOBAL TEMPORARY,LOCAL TEMPORARY,ALIAS,SYNONYM
schemaNoOmit to use the connection's defaultSchema or the current schema.
connectionYesDatabase to run against. Call listConnections for valid names; do not guess.
namePatternNoJDBC pattern ('%' any, '_' one character).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
tablesNoTable and view entries.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.0
    • changedInput schema / properties / schema / description
      Previous value: -"Omit to use JDBC_DEFAULT_SCHEMA or the current schema."New value: +"Omit to use the connection's defaultSchema or the current schema."
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds one useful boundary beyond that — no column/field data is returned — but says nothing about result size, pagination, or behavior on large schemas.

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, zero filler, and the core capability is front-loaded before the routing hint. Every clause earns its place.

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 and annotations carry the safety profile, so the description need not explain return values or side effects. Scope plus the describeTable routing make it callable, though it is silent on large-schema result limits or how the required connection interacts with a missing schema.

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 the schema already documents connection, schema, types and namePattern including JDBC type lists and the '%'/'_' pattern syntax. The description only restates that name/type filtering exists, adding no syntax or default detail beyond the schema; baseline 3 applies.

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?

States a specific verb (enumerate) and resource (table and view names) plus the scoping (a known schema) and filter options (name or type). It explicitly names the sibling that covers the complementary job: 'use describeTable for one object's structure.'

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 draws an explicit boundary: it does NOT return fields/columns, and routes the agent to describeTable when structure for a single object is needed. It lacks guidance against other list-style siblings such as searchObjects or listSchemas, but the primary alternative is covered.

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