Tools for managing versioned analytical data stores with DuckDB. Query data, manage schemas, import data, and create Vega dashboards.
/api/tools/data-platform
Get the schema of a data store. Returns table definitions, columns, relationships, and metadata. Use format='data' for an AI-friendly summary optimized for context windows.
POST /api/tools/data-platform
string
string
[DEPRECATED - Use execute_shell with databases parameter instead] Execute a read-only SQL query against a data store. For better performance and full DuckDB features, sync the database to sandbox using execute_shell with databases:[{store_id}] and query with native DuckDB.
POST /api/tools/data-platform
string
string
number
string
List all tables in a data store with their metadata including column count and row count.
POST /api/tools/data-platform
string
List all dashboards for a data store. Returns dashboard names, status, and panel/query counts.
POST /api/tools/data-platform
string
string
List versions of a dashboard. Shows version history and named snapshots.
POST /api/tools/data-platform
string
string
boolean
number
Create a new DuckDB database for storing analytical data. Databases support versioning, snapshots, and multi-table atomic operations.
POST /api/tools/data-platform
string
string
Create one or more tables in a data store atomically. Pass an array of table definitions - all tables are created in a single transaction.
POST /api/tools/data-platform
string
array
string
Modify an existing table schema. Add, drop, or modify columns. Creates a version snapshot before changes.
POST /api/tools/data-platform
string
string
array
array
array
array
Import data into one or more tables atomically. Supports inline data or external files (GCS, HTTPS). Creates a version snapshot before import for rollback.
POST /api/tools/data-platform
string
string
string
object
Preview a dashboard without saving it. Renders the dashboard to a PNG image. Use this to iterate on dashboard design before creating.
POST /api/tools/data-platform
string
string
number
object
object
number
string
Create a new Vega-Lite dashboard linked to a data store. Use data_preview_dashboard first to iterate on the design before saving.
POST /api/tools/data-platform
string
string
string
string
number
object
object
Update an existing dashboard. Modify query, spec, or metadata.
POST /api/tools/data-platform
string
string
string
string
string
number
object
object
boolean
Render a saved dashboard to a PNG image. Executes all queries and renders panels according to their Vega specifications.
POST /api/tools/data-platform
string
string
number
string
object
Create a named snapshot of the current dashboard state. Use to save important checkpoints like 'v1-final' or 'before-redesign'. Snapshots are protected from auto-cleanup.
POST /api/tools/data-platform
string
string
string
string
Promote a specific version to be the current/active dashboard. This restores that version's content (queries, panels, layout) and creates a new version record.
POST /api/tools/data-platform
string
string
string
string
Enable or disable automatic versioning for a dashboard. When disabled, updates won't create new versions. Useful for dashboards that don't need version history.
POST /api/tools/data-platform
string
string
boolean