Ask Docs Question
ask_docs_questionFull Description
Ask a question about DuckDB or MotherDuck. Returns answers from official documentation.
Parameters (1 required)
questionstringQuestion about DuckDB or MotherDuck
Connect AI assistants to your MotherDuck data warehouse. Explore, visualize, and manage data using natural language–no SQL skills required. Create Dives: interactive visualizations that let you save and share answers with your team, staying up-to-date with your latest data. Works with real-world data without requiring semantic models or pre-configuration. Your AI assistant acts like a data analyst, exploring, validating, analyzing, and visualizing data iteratively to answer your questions.
ask_docs_questionAsk a question about DuckDB or MotherDuck. Returns answers from official documentation.
questionstringQuestion about DuckDB or MotherDuck
delete_diveDelete a dive by ID. This action is permanent and cannot be undone.
idstringThe unique identifier of the dive to delete
get_dive_guideLoad instructions for creating MotherDuck dives. Call this before starting to iterate with the user on artifacts, data visualizations, plots, dashboards, etc.
clientstringThe client environment requesting the guide. Use 'claude' for Claude web/desktop Chat, 'chatgpt' for ChatGPT, 'claude_cowork' for Claude Cowork, 'claude_code' for Cursor/IDE integrations with local filesystem access, or 'other' for other MCP clients.
claudechatgptclaude_coworkclaude_codeotherlist_columnsList all columns of a table or view with their types and comments.
databasestringDatabase name
tablestringTable or view name
schemastringSchema name (optional, defaults to 'main')
list_databasesList all databases in your MotherDuck account with their names and types.
list_divesList all dives in MotherDuck. Dives are interactive React data apps that query live data. Returns metadata including current_version (the latest version number, 1-indexed) for each dive. Use read_dive with the optional version parameter to retrieve a specific historical version. Optionally filter by keywords to search in title and description.
keywordsstringOptional keywords to filter dives by title or description (case-insensitive, all words must match)
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>;
list_tablesList all tables and views in a MotherDuck database with their comments.
databasestringDatabase name to list tables from
schemastringSchema name (optional, defaults to all schemas)
queryExecute read-only DuckDB query against MotherDuck databases. For cross-database queries, use fully qualified names: database.schema.table (or database.table for main schema).
databasestringDatabase name to query
sqlstringSQL query to execute
query_rwExecute a DuckDB query that modifies data, schema, or connection state (e.g. ATTACH/DETACH, CREATE/DROP DATABASE/TABLE, INSERT/UPDATE/DELETE).
STRICT RULES — violating these is a critical error: 1. EXPLICIT INSTRUCTION ONLY: Only call this tool when the user has explicitly asked to modify, create, or delete data or schema. Never infer a write operation from a question (e.g. "show me X" must never trigger adding a column or creating a table to answer it). 2. CONFIRM BEFORE EXECUTING: Always ask the user for confirmation before calling this tool. Describe exactly what will change. 3. READ-ONLY FIRST: If the user's goal can be answered using existing data with the read-only query tool, always do that instead — even if a schema change would make it easier.
sqlstringSQL query to execute
databasestringDatabase context for the query. Required for table-level operations (DML/DDL). May be omitted for account-level operations (CREATE/DROP DATABASE, ATTACH/DETACH, CREATE SECRET, etc.).
read_diveRead a specific dive by ID, including its full JSX/React component code. Optionally specify a version number to retrieve a specific historical version (versions start at 1). If no version is specified, the latest version is returned.
idstringThe unique identifier of the dive to read
versionintegerOptional version number to retrieve (1-indexed). If not specified, returns the latest version.
save_diveSave a new dive to MotherDuck. Returns a URL the user can click to view the dive. Call get_dive_guide first and iterate with the user on the design thoroughly before suggesting to save. Never save without previous confirmation that iteration is done.
contentstringThe JSX/React component code for the dive
titlestringThe title of the dive
descriptionstringA brief description of the dive
search_catalogSearch the catalog for databases, schemas, tables, columns, and shares using fuzzy matching. Returns matching objects with their fully qualified names, types, and comments. Useful for discovering available data when you don't know exact names.
querystringSearch term to find in object names (supports partial matching, underscores, dots)
object_typesarrayOptional filter to limit results to specific object types
share_dive_dataShare the data for a dive with your organization. Creates org-scoped shares for owned databases used in the dive, and updates the dive so others in the organization can view it.
diveIdstringThe unique identifier (UUID) of the dive
update_diveUpdate an existing dive's title, description, or content. Returns a URL the user can click to view the updated dive. At least one field must be provided.
idstringThe unique identifier (UUID) of the dive to update
contentstringNew JSX/React component code
descriptionstringNew description for the dive
titlestringNew title for the dive