Skip to main content
Glama
motherduckdb

mcp-server-motherduck

Official
by motherduckdb

List Columns

list_columns
Read-only

Lists columns of a table or view with their data types and comments. Uses the current database and schema if not specified.

Instructions

List all columns of a table or view with their types and comments. If database/schema are not specified, uses the current database/schema.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableYesTable or view name
schemaNoSchema name (defaults to current schema)
databaseNoDatabase name (defaults to current database)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.8

TDQS

A3.9/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 adds the useful defaulting behavior for database/schema, but that same default is already stated in the input schema, so the incremental behavioral value is modest.

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, front-loaded with the core purpose, and the defaulting constraint follows without redundancy or wasted words.

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

Completeness5/5

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

With annotations covering safety and a full output schema covering return values, the description supplies the only remaining critical context: that database/schema fall back to the current session. Nothing needed to call this tool correctly is missing.

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 all three parameters, including their defaulting behavior. The description repeats the database/schema default without adding syntax, format, or selection meaning beyond the schema.

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 and resource: 'List all columns of a table or view with their types and comments.' This clearly distinguishes it from sibling tools like list_tables and list_databases, and an agent can tell exactly what it returns.

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?

The purpose implies usage (inspect table structure), and the description notes the default database/schema behavior, but it never states when to choose this over execute_query or list_tables, nor any prerequisites or exclusions. Adequate but with a clear gap in routing guidance.

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