Skip to main content
Glama
motherduckdb

mcp-server-motherduck

Official
by motherduckdb

List Tables

list_tables
Read-only

Show all tables and views with their comments from a specified or current database. Filter by schema to explore MotherDuck or DuckDB data.

Instructions

List all tables and views in a database with their comments. If database is not specified, uses the current database.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
schemaNoOptional schema name to filter by
databaseNoDatabase name to list tables from (defaults to current database)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.8

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description only adds that comments accompany each table and that the current database is the default scope; it says nothing about result size, filtering interaction, or pagination.

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 short sentences, zero filler, with the primary action stated first and the fallback behavior second. Nothing redundant or padding.

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, so return values need not be explained, and the tool is a simple read with no credentials or side effects. The definition is essentially complete, with only minor room for a note on result limits or when to prefer list_columns.

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 the 'schema' filter and the 'database' default are already documented in the schema. The description merely restates the database default, adding no format, syntax, or edge-case detail beyond 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 (List) and resource (tables and views in a database) with the added detail that comments are returned. The resource clearly separates it from siblings like list_databases and list_columns, though no sibling is named explicitly.

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 description explains a default (falls back to the current database) but gives no guidance on when to choose this tool over list_databases, list_columns, or execute_query. Usage must be inferred entirely from the name.

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