Building a Data Stack Live with AI AgentsLivestream August 18

Skip to main content

Guides functions

Preview
This feature is in preview and is subject to change.

SQL table functions for managing Guides — markdown documents that capture metric definitions, join conventions, and domain context that AI agents use to answer your organization's data questions correctly.

Guides are identified by UUID, consistent with Dives and Flights. An optional topic — a slash-separated grouping label like revenue-billing or core/metrics — groups related guides for browsing and filtering. Topics carry no uniqueness: multiple guides can share a topic.

note

These functions run server-side on MotherDuck. They are not available on local-only DuckDB connections.

Use Guides through the MotherDuck MCP server to let AI assistants read and write them automatically, or run the SQL functions directly from any MotherDuck connection.

-- List all guides visible to you
SELECT * FROM MD_LIST_GUIDES();

-- Read a guide by id
SELECT title, content FROM MD_GET_GUIDE(id = '<guide_uuid>');

-- Create a guide
SELECT id, topic, title, current_version
FROM MD_CREATE_GUIDE(
topic = 'revenue-billing',
title = 'MRR and ARR Definitions',
content = '# MRR and ARR Definitions ...',
access = 'organization'
);

Available functions