Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Ask docs question
MOTHERDUCK_MCP_ASK_DOCS_QUESTIONAsk a question about DuckDB or MotherDuck. Returns answers from official documentation.
Dive query
MOTHERDUCK_MCP_DIVE_QUERYExecute a read-only DuckDB query on behalf of a dive. This tool is used by the dive viewer and is not intended for direct use by the AI assistant.
Get dive guide
MOTHERDUCK_MCP_GET_DIVE_GUIDELoad instructions for creating MotherDuck dives. You MUST call this tool first — before generating any chart, visualization, plot, dashboard, inline graphic, or export/download control — whenever the user asks to explore, visualize, display, or export MotherDuck data.
Get flight
MOTHERDUCK_MCP_GET_FLIGHTFetch a flight by UUID. Returns metadata plus a version snapshot (source code, requirements, config, secret names, token name). Omit `version` to get the current version; pass a 1-indexed version number to inspect history.
Get flight guide
MOTHERDUCK_MCP_GET_FLIGHT_GUIDELoad instructions for authoring, scheduling, running, and troubleshooting MotherDuck flights. Call this tool first whenever the user asks about creating, updating, or operating a MotherDuck flight.
Get flight logs
MOTHERDUCK_MCP_GET_FLIGHT_LOGSFetch the plain-text logs (stdout + stderr) of a flight run plus the matching `Run` record (status, exit_code, timing). Returns the last 200 lines by default; page with `limit`, `offset` and `order`. Pass `max_bytes` to cap the response size — the response is truncated to fit and the truncation is reported via `truncated: true`.
Get flight run
MOTHERDUCK_MCP_GET_FLIGHT_RUNFetch a single run of a flight by its sequential run number (from list_flight_runs). Returns the same shape as a list_flight_runs entry: status (PENDING/RUNNING/SUCCEEDED/FAILED/CANCELLED), timing metadata, and the effective `config` the run executed with. Use this to poll one run's status instead of re-listing.
Get guide
MOTHERDUCK_MCP_GET_GUIDELoad a guide by uuid. Guides are curated markdown documents about this organization's data (metric definitions, conventions, pitfalls). Find a guide's uuid with `list_guides` or via `get_query_guide` (start there before writing SQL), `get_dive_guide`, or `get_flight_guide`.
Get query guide
MOTHERDUCK_MCP_GET_QUERY_GUIDECall this before writing SQL to answer a data question. Returns this organization's query guidance: what guides exist (curated markdown documents about the data — metric definitions, join/filter conventions, pitfalls), how to navigate them, and an overview of the available guide topics.
List columns
MOTHERDUCK_MCP_LIST_COLUMNSList all columns of a table or view with their types and comments.
List databases
MOTHERDUCK_MCP_LIST_DATABASESList all databases in your MotherDuck account. Shows each database's alias, type, and its `url` — a fully qualified MotherDuck database name (e.g. `md:my_db`) or share URL (e.g. in guide references). Optionally filter by keywords.
List dives
MOTHERDUCK_MCP_LIST_DIVESList all dives in MotherDuck. Dives are interactive React data apps that query live data. Returns metadata including current_version and status. Each dive has a governance status: 'endorsed' (admin-approved org source of truth — prefer these), 'ready' (author-reviewed), 'draft' (work in progress; the default for new dives), or 'archived' (retired; excluded unless include_archived is true). Results are ordered endorsed, ready, draft, then archived, most recently updated first. Use read_dive with the optional version parameter to retrieve a specific historical version. Optionally filter by keywords.
List flight runs
MOTHERDUCK_MCP_LIST_FLIGHT_RUNSList executions of a flight, newest first. Each run has a sequential number, status (PENDING/RUNNING/SUCCEEDED/FAILED/CANCELLED), timing metadata, and the effective `config` it ran with (the flight version's config merged with any per-run overrides).
List flights
MOTHERDUCK_MCP_LIST_FLIGHTSList MotherDuck flights. Org admins see every flight in their organization (with `owner_name` identifying whose is whose); everyone else sees only their own. Returns metadata for each flight including schedule and current version. Optionally filter by keywords matching the flight name.
List flight versions
MOTHERDUCK_MCP_LIST_FLIGHT_VERSIONSList the immutable versions of a flight, newest first. Each update to source_code / requirements_txt / config / access_token_name / flight_secret_names produces a new version.
List guides
MOTHERDUCK_MCP_LIST_GUIDESBrowse this organization's curated guides — markdown documents that capture organization and personal context about the data in MotherDuck. Called with no arguments, lists the root level: guides without topics plus every topic (folder) with its guide count. Pass `topic` to open a folder — you get the guides stored at that topic and the nested topics below it. Read a guide in full with `get_guide(uuid)`.
List macros
MOTHERDUCK_MCP_LIST_MACROSList all macros (table and scalar macros) in a MotherDuck database, with their schema and parameters. Optionally filter by schema or keywords.
List shares
MOTHERDUCK_MCP_LIST_SHARESList all database shares that have been shared with you. Returns share names and URLs. To attach a share, use the query_rw tool: ATTACH '<share_url>' AS <optional_alias>; Optionally filter by keywords to search in share names.
List tables
MOTHERDUCK_MCP_LIST_TABLESList all tables and views in a MotherDuck database with comments. Optionally filter by keywords. Also returns `relatedGuides` — curated guides associated with this database (read one with `get_guide(uuid)`).
List views
MOTHERDUCK_MCP_LIST_VIEWSList all views in a MotherDuck database, with their schema, comment, and column count. Optionally filter by schema or keywords.