manage_query
Create, update, list, or delete SQL queries within a Mode report.
Use **create** to add a new SQL query to a report.
Use **update** to modify an existing query's SQL, name, or data source.
Use **list** to get all queries in a report.
Use **delete** to remove a query from a report.
get_report_run
Retrieve the status and details of a specific report run, including its state, timestamps, and associated query runs.
list_reports
List reports within a Mode workspace. You can filter reports by collection or data source. Supports ordering and filtering by creation or update timestamps.
get_report
Retrieve detailed information about a specific Mode report by its token. Returns the report's name, description, archived status, timestamps, and associated collection.
manage_report_schedule
Create, update, or delete a schedule for a Mode report.
Schedules execute report SQL and notebooks repeatedly and may incur warehouse costs or send configured subscription notifications. Use **create** only when these effects are intended; configure frequency, time, and timezone explicitly.
Use **update** to modify an existing schedule's parameters.
Use **delete** to remove a schedule.
list_datasets
List datasets in the workspace. Filter by collection or data source. Supports ordering by creation or update timestamps.
list_report_runs
List all runs for a given report with filtering and ordering support. Returns a list of run statuses and timestamps.
run_report
Trigger a new execution (run) of a Mode report. This executes the report SQL and notebooks against its connected data sources and may incur warehouse costs or other report-defined effects. A successful request accepts an asynchronous run; inspect its status to determine success.
list_report_schedules
List all scheduled runs configured for a specific Mode report. Returns schedule details including frequency, time, and timezone.
list_members
List all members of the Mode workspace. Returns each member's username, email, name, admin status, and membership state.
list_definitions
List SQL definitions in the workspace. Definitions store reusable SQL SELECT statements. Optionally filter by tokens.
list_collections
List all collections (formerly Spaces) in the workspace. Optionally filter to include all collections (including ones the admin has not joined) or only custom collections.
list_data_sources
List all database connections (data sources) configured in the workspace. Returns each data source's name, adapter type, host, database, and port.
manage_dataset
Update or delete a Mode dataset.
Use **update** to change the dataset's name, description, or move it to a different collection.
Use **delete** to permanently remove a dataset.
manage_definition
Create, update, or delete a SQL definition in the workspace.
Use **create** to add a new shared SQL definition.
Use **update** to modify an existing definition.
Use **delete** to remove a definition.
manage_report
Update, archive, unarchive, or delete a Mode report.
Use **update** to change the report's name, description, or move it to a different collection.
Use **archive** or **unarchive** to soft-delete/restore a report.
Use **delete** to permanently remove a report.
manage_collection
Create, update, or delete a collection (Space) in the workspace.
Use **create** to make a new collection for organizing reports.
Use **update** to rename or change the description.
Use **delete** to remove an empty collection (all reports must be removed first).
download_results
Download an existing successful report run as CSV, JSON or PDF. CSV and JSON can also export a single query run. This reads existing results and does not execute SQL or start a report.
get_current_account
Verify the API credentials and retrieve the configured, authorized Mode account. Workspace tokens identify the workspace rather than an individual user.