Infrastructure creation (datasources, datamarts, workspaces) is done in the Databrain UI. The MCP server provides read and linking operations for infrastructure, and full CRUD for everything from data apps onward. The semantic layer is the exception — it is populated and maintained entirely via MCP tools.
Infrastructure — Exploration & Linking
5 tools for discovering and connecting your existing Databrain resources. These are typically the first tools called during any setup flow. See Embed a Dashboard for a complete walkthrough.| Tool | Description | Auth |
|---|---|---|
list_datasources | List all connected datasources in your organization | Service Token |
discover_datasource_schema | Inspect a datasource to see its tables and columns | Service Token |
list_datamarts | List all datamarts | Service Token |
list_workspaces | List all workspaces with their datamart and datasource connections | Service Token |
link_datamart_to_workspace | Link a datamart to an existing workspace | Service Token |
list_datasources
list_datasources
Lists all datasources connected to your Databrain organization. Returns datasource names, types, and connection status.Parameters: None required.Use when: Starting a new setup to understand what data is available.
discover_datasource_schema
discover_datasource_schema
Introspects a datasource to return its tables, columns, and column types. Useful for understanding the shape of your data before creating datamarts.Parameters:
datasourceName(required) — Name of the datasource to inspect
list_datamarts
list_datamarts
Lists all datamarts in your organization. Returns datamart names, associated datasources, and table configurations.Parameters: None required.Use when: Choosing which datamart to use for querying or embedding.
list_workspaces
list_workspaces
Lists all workspaces, showing which datamarts and datasources each is connected to.Parameters: None required.Use when: Understanding your workspace structure or selecting a workspace for dashboard operations.
link_datamart_to_workspace
link_datamart_to_workspace
Links a datamart to an existing workspace. This is required before dashboards in that workspace can use the datamart’s data.Parameters:
datamartName(required) — Name of the datamart to linkworkspaceName(required) — Name of the target workspace
Data Apps & Tokens
5 tools for managing data apps and their API tokens. These are handled automatically during embed setup — see Embed a Dashboard.| Tool | Description | Auth |
|---|---|---|
list_data_apps | List all data apps | Service Token |
create_data_app | Create a new data app | Service Token |
list_api_tokens | List API tokens for a data app | Service Token |
create_api_token | Create and activate a new API token | Service Token |
rotate_api_token | Rotate an existing API token | Service Token |
list_data_apps
list_data_apps
Lists all data apps in your organization. Data apps are the top-level containers for embeds.Parameters: None required.Use when: Starting embed setup or managing existing data apps.
create_data_app
create_data_app
Creates a new data app.Parameters:
name(required) — Name for the new data app
list_api_tokens
list_api_tokens
Lists API tokens for a specified data app.Parameters:
dataAppName(required) — Name of the data app
create_api_token
create_api_token
Creates a new API token for a data app and automatically activates it for subsequent embed operations.Parameters:
dataAppName(required) — Name of the data app
rotate_api_token
rotate_api_token
Rotates an existing API token, generating a new key while invalidating the old one.Parameters:
dataAppName(required) — Name of the data app
Embeds
7 tools for creating, configuring, and customizing embedded dashboards. See workflows: Brand & Theme, Filters, Multi-Tenant.| Tool | Description | Auth |
|---|---|---|
create_embed | Create an embed (standard or multi-tenant with clientId) | API Token |
list_embeds | List all embed configurations | API Token |
get_embed_details | Get full embed details by ID | API Token |
update_embed | Update embed configuration (raw patch) | API Token |
customize_embed_theme | Presets, colors, fonts, cards, chart appearance, responsive layout | API Token |
configure_embed | UI options, filters (string/date/number/SQL), i18n, translations | API Token |
diagnose_embed_health | Diagnose malformed embeds and validate runtime readiness | API Token |
create_embed
create_embed
Creates an embed configuration. Supports standard dashboard embeds and multi-tenant embeds with a
clientId for row-level security.Parameters:datamartName(required) — The datamart to use inaccessSettingsclientId(optional) — Client identifier for multi-tenant embedstemplateDashboardId(optional) — Dashboard to use as a templateisImportMetrics(optional) — Import metrics from the template dashboardbody(optional) — Raw passthrough to the API for advanced use cases
list_embeds
list_embeds
Lists all embed configurations for the current data app.Parameters: None required.Use when: Reviewing existing embeds or finding an embed ID.
get_embed_details
get_embed_details
Returns full details for a specific embed including access settings, theme, options, and filters.Parameters:
embedId(required) — The embed ID to inspect
update_embed
update_embed
Applies a raw patch to an embed configuration. This is the low-level update tool — use
customize_embed_theme or configure_embed for guided updates.Parameters:embedId(required) — The embed ID to updatebody(required) — Patch object sent to the API
customize_embed_theme
customize_embed_theme
Applies visual theming to an embed: theme presets, custom colors, font family, card styling (padding, border radius, shadows), chart appearance (tooltips, legends, axes), and responsive breakpoints with layout columns.Parameters:
embedId(required) — The embed ID to themepreset(optional) — Theme preset namecolors(optional) — Custom color configurationfonts(optional) — Font family and sizingcards(optional) — Card styling (padding, borders, shadows)charts(optional) — Chart appearance (tooltips, legends, axes)responsive(optional) — Breakpoint and column configuration
configure_embed
configure_embed
Configures embed behavior: UI toggle options, filters (string, date, number, and SQL-based server-side filters), internationalization (language, calendar type, translations), and custom messages.Parameters:
embedId(required) — The embed ID to configureoptions(optional) — UI toggle optionsstringFilters,numberFilters,dateFilters,sqlFilters(optional) — Filter configurationshideDashboardFilters(optional) — Dashboard filters to hidelanguage(optional) — UI languagecalendarType(optional) — Calendar formattranslations(optional) — Custom translation stringsbody(optional) — Raw passthrough for advanced use
diagnose_embed_health
diagnose_embed_health
Runs diagnostic checks on an embed to detect malformed metadata (missing access settings, invalid references) and optionally validates runtime readiness when guest token info is provided.Parameters:
embedId(required) — The embed ID to diagnoseguestTokenBody(optional) — Guest token payload to validatepermissions(optional) — Permissions object to validate
Frontend
2 tools for generating guest tokens and frontend integration code. These are the final step of every embed workflow — see Framework Integration for detailed per-framework guides.| Tool | Description | Auth |
|---|---|---|
generate_guest_token | Generate a frontend guest token (server-side) | API Token |
generate_embed_code | Generate integration code for your framework | None (local) |
generate_guest_token
generate_guest_token
Generates a guest token for frontend use. Guest tokens are the authentication mechanism for embedded dashboards — they’re generated server-side and passed to the frontend component.Parameters:
clientId(required) — Client identifier (use"None"if no tenancy)dataAppName(required) — Name of the data appparams(optional) — Additional parameters:allowedEmbeds,appFilters,dashboardAppFilters,hideDashboardFilters,userIdentifier,timezonepermissions(optional) — Permission flags for what end-users can dotheme(optional) — Theme overrides for this tokenexpiryTime(optional) — Token expiration timebody(optional) — Raw passthrough to the guest token API
generate_embed_code
generate_embed_code
Generates framework-specific integration code for embedding a dashboard. Supports React, Next.js, Vue, Angular, Svelte, and vanilla JavaScript.Parameters:
framework(required) — Target frameworkembedId(required) — The embed IDtoken(optional) — Guest token to include in the generated code
Query & Semantic Layer
3 tools for natural language querying and managing data documentation. See workflows: Query Data, Populate Semantic Layer.| Tool | Description | Auth |
|---|---|---|
ask_question | Ask a question in natural language — returns data + chart suggestion | Service Token |
get_semantic_layer | Inspect semantic layer metadata and quality score | Service Token |
update_semantic_layer | Add or update table/column descriptions, synonyms, example questions | Service Token |
ask_question
ask_question
Converts a natural language question to SQL, executes it against your data, and returns results with a chart type suggestion. Requires a populated semantic layer for best results.Parameters:
question(required) — The question to askdatamartName(required) — Which datamart to query (uselist_datamartsto find available datamarts)sessionId(optional) — Session ID for follow-up questions with conversation contexttimezone(optional) — Timezone for date calculations
get_semantic_layer
get_semantic_layer
Retrieves semantic layer metadata for a datamart: table and column descriptions, synonyms, example questions, and a completion score indicating documentation quality.Parameters:
datamartName(required) — Name of the datamart
update_semantic_layer
update_semantic_layer
Adds or updates semantic layer metadata: table descriptions, column descriptions, synonyms, and example questions. This is required before
ask_question produces accurate results.Parameters:datamartName(required) — Name of the datamarttables(optional) — Table-level descriptions and metadatacolumns(optional) — Column-level descriptions and synonymsexampleQuestions(optional) — Sample questions to guide the AIfeedback(optional) — General feedback for the semantic layer
Discovery & Orchestration
2 tools for dashboard discovery and guided setup flows.| Tool | Description | Auth |
|---|---|---|
list_dashboards | List dashboards by data app, workspace, or globally | Service Token / API Token |
setup_embed_interactive | Guided step-by-step embed setup flow | Service Token + API Token |
list_dashboards
list_dashboards
Lists dashboards scoped by data app (if API token is active), workspace name, or globally.Parameters:
workspaceName(optional) — Filter by workspacedataAppId(optional) — Filter by data app
setup_embed_interactive
setup_embed_interactive
A guided, step-by-step flow that walks through the entire embed setup process. Each step returns a status and instructions, and the assistant passes the state forward through the flow.Steps:
discover_data_apps → choose_data_app / create_data_app → ensure_api_token → discover_workspaces → choose_workspace → list_dashboards → choose_dashboard → create_embed → runtime_readiness → completeParameters:step(required) — The current step in the flowstate(optional) — State object from the previous step (pass forward unchanged)- Various step-specific parameters

