---
canonical_url: "https://docs.composio.dev/toolkits/databox_mcp"
markdown_url: "https://docs.composio.dev/toolkits/databox_mcp.md"
product: "platform"
version: null
last_updated: null
---

# Databox MCP

List Databox accounts, data sources, datasets and metrics, create data sources and datasets, ingest data, load metric and databoard data, and ask Genie for analysis through Databox's hosted MCP server.

- **Category:** model context protocol
- **Auth:** DCR_OAUTH
- **Composio-managed OAuth available?** No
- **Tools:** 19
- **Triggers:** 0
- **Slug:** `DATABOX_MCP`
- **Version:** 20261129_00

## Tools

### Ask genie

**Slug:** `DATABOX_MCP_ASK_GENIE`

Ask Genie, your data analyst assistant, to explore and analyze a dataset.

Genie helps you understand your data through natural language. It can:
- Examine dataset structure and available columns
- Execute SQL queries to answer your questions
- Translate findings into clear, business-friendly insights

Use this for:
- Exploratory data analysis ("What columns are available?")
- Answering business questions ("What are the top 10 customers by revenue?")
- Finding trends and patterns ("Show me sales trends for the last 30 days")
- Getting summaries and statistics ("What is the average order value by region?")
- Investigating anomalies ("Why did signups drop last week?")

Genie provides concise answers and offers to dig deeper if you need more detail.

Genie answers one question at a time per conversation. Wait for a call to
return before sending another with the same thread_id -- one that arrives
while the previous is still running is rejected (error_code
CONCURRENT_RUN). To ask several questions at once, omit thread_id so each
starts its own conversation and they run in parallel.

IMPORTANT: When the question contains relative dates like "last month",
"yesterday", "this week", etc., you MUST first call get_current_datetime()
to get the actual current date, then convert the relative date to an
absolute date before calling this tool.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `question` | string | Yes | Natural language question or request about the data |
| `thread_id` | string | No | Optional thread ID to continue an existing conversation. If not provided, starts a new conversation thread. Use the thread_id from a previous response to ask follow-up questions. Only one call at a time may use a given thread_id -- run parallel questions on separate threads by leaving this unset. |
| `dataset_id` | string | Yes | Id of a dataset or merged dataset, as list_data_source_datasets, create_dataset or list_merged_datasets return it. A data source id cannot be queried. |

### Create dataset

**Slug:** `DATABOX_MCP_CREATE_DATASET`

Create a new dataset within a data source.

Define a structured dataset with an optional schema for storing tabular data.
Only admins, and Users or Editors who created the data source, can
create datasets under it.

The created dataset's data_source_id is its own id, the one list_metrics
and ask_genie take; its parent is the data_source_id you passed in.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Human-readable name for the dataset (required) |
| `columns` | string | No | Optional JSON string defining column schema. Each column has: - name: Column name (required) - data_type: One of "string", "number", "datetime" (required) |
| `primary_keys` | string | No | Optional JSON string with array of column names for composite key (e.g. '["id"]') |
| `data_source_id` | string | Yes | Numeric id of the parent data source, from list_data_sources or create_data_source (required) |

### Create data source

**Slug:** `DATABOX_MCP_CREATE_DATA_SOURCE`

Create a new data source in Databox.

Create a data source container for organizing datasets. When
account_id is provided, the data source is created under that
specific account; otherwise it is created in the organization the
user signed in to. Use the list_accounts tool to discover available
account IDs.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Human-readable name for the data source (required) |
| `account_id` | string | No | Numeric id of the target account, from list_accounts (optional) |

### Delete dataset

**Slug:** `DATABOX_MCP_DELETE_DATASET`

Delete a dataset from Databox.

Permanently remove a dataset and all its data. This operation
cannot be undone. Only admins, and Users or Editors who created the
dataset, can delete it. When it is the only dataset of a data source
made with create_data_source, Databox deletes that data source too.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `dataset_id` | string | Yes | Numeric id of the dataset to delete, from list_data_source_datasets or create_dataset (required). A dataset GUID still works. Databox does not check that a numeric id is a dataset, so a data source id deletes that data source. |

### Delete data source

**Slug:** `DATABOX_MCP_DELETE_DATA_SOURCE`

Delete a data source from Databox.

Permanently remove a data source and all its associated datasets.
This operation cannot be undone. Only admins, and Users or Editors
who created the data source, can delete it; Databox refuses the rest
with a permission error.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data_source_id` | string | Yes | Numeric id of the data source to delete, from list_data_sources or create_data_source |

### Get current datetime

**Slug:** `DATABOX_MCP_GET_CURRENT_DATETIME`

Get the current date and time.

Use this tool when you need to know the current date/time to resolve
relative date expressions like "last month", "yesterday", etc.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `timezone` | string | No | Optional timezone name (e.g., 'UTC', 'America/New_York'). Defaults to UTC. |

### Get databoard by id

**Slug:** `DATABOX_MCP_GET_DATABOARD_BY_ID`

Load a databoard's full block and metric configuration.

Returns the board's blocks, and for each block the metric tiles it
contains: metric_key, the data_source_id the metric lives on, the
absolute date range, granulation, optional breakdown dimension, and
filters. This returns the board's CONFIGURATION, not live metric
values; pass a tile's data_source_id and metric_key to load_metric_data
to fetch its values (or to list_metrics to look up the metric's name).

Find a board_id first with search_databoards.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `board_id` | integer | Yes | Numeric databoard ID (from search_databoards). |

### Get dataset ingestions

**Slug:** `DATABOX_MCP_GET_DATASET_INGESTIONS`

Get ingestion history for a specific dataset.

Retrieve up to 100 data ingestion jobs for a dataset, with their IDs,
statuses and timestamps. A job is processing while it runs, then
completed or failed; purged means its data was purged since, and
unknown is a status this server does not recognise. Use get_ingestion
for a job's record counts.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `dataset_id` | string | Yes | Numeric id of the dataset, from list_data_source_datasets or create_dataset (required). A dataset GUID still works. |

### Get date ranges

**Slug:** `DATABOX_MCP_GET_DATE_RANGES`

Get valid date range presets for the chart widget.

Intended for the chart widget, which calls it to populate the date
range picker dropdown. Note that visibility=["app"] only hides the
tool from the host's model-visible tool list — it remains callable by
any authenticated MCP client, so inputs are validated like any
public tool.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `date_range` | string | Yes | JSON-encoded SimpleDateRange object |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `result` | array | Yes |  |

### Get ingestion

**Slug:** `DATABOX_MCP_GET_INGESTION`

Get detailed information for a specific ingestion event.

Retrieves detailed information for an ingestion event, allowing you to
check processing progress and outcomes including record counts and
dataset metrics. The status is inProgress while the ingestion runs,
then success or failed; purged means its data was purged since, and
unknown is a status Databox did not name. Record counts are zero until
the ingestion has metrics.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `dataset_id` | string | Yes | Numeric id of the dataset, from list_data_source_datasets or create_dataset (required). A dataset GUID still works. |
| `ingestion_id` | string | Yes | Id of the ingestion event, from get_dataset_ingestions or ingest_data (required) |

### Ingest data

**Slug:** `DATABOX_MCP_INGEST_DATA`

Ingest data into an existing dataset.

Push data records into a dataset. Each record must match the dataset's
schema. Data validation is performed against column types and constraints.
Only admins, and Users or Editors who created the dataset, can ingest
into it; Databox refuses the rest with a permission error.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | JSON string containing an array of data records. Each record should be an object with column names as keys. |
| `dataset_id` | string | Yes | Numeric id of the dataset, from list_data_source_datasets or create_dataset (required). A dataset GUID still works. |

### List accounts

**Slug:** `DATABOX_MCP_LIST_ACCOUNTS`

List all Databox accounts accessible to the authenticated user.

Retrieves the organization the user signed in to, followed by its
client accounts when the organization is an agency. Use this to
discover account IDs needed for listing data sources.

Returns:
    Dictionary containing an array of accounts with their IDs and names.

Examples:
    list_accounts()

### List data sources

**Slug:** `DATABOX_MCP_LIST_DATA_SOURCES`

List all data sources for a specific account.

Retrieves the data sources the user can access in the specified
account. Users who are not admins see only the data sources they
created or that were shared with them.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `account_id` | string | Yes | Numeric id of the account, from list_accounts |

### List data source datasets

**Slug:** `DATABOX_MCP_LIST_DATA_SOURCE_DATASETS`

List all datasets belonging to a specific data source.

Retrieve the datasets created under a data source, oldest first.
For a data source in a client account, pass that account's id.

Each returned dataset id can be passed to list_metrics as
data_source_id to find metrics that live on that dataset. A dataset's
data_source_id field holds that same id, not its parent's: the parent
is the data source you passed in.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `account_id` | string | No | Numeric id of the account the data source belongs to, from list_accounts (optional, defaults to the organization the user signed in to) |
| `data_source_id` | string | Yes | Unique identifier of the data source |

### List merged datasets

**Slug:** `DATABOX_MCP_LIST_MERGED_DATASETS`

List all merged datasets for a specific account.

Retrieve all merged datasets available for the specified account.
Merged datasets combine data from multiple sources into a single
unified dataset.

Each returned merged dataset id can be passed to list_metrics as
data_source_id to find metrics that live on that merged dataset. A
merged dataset's data_source_id field holds that same id.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `account_id` | string | Yes | Numeric id of the account, from list_accounts |

### List metrics

**Slug:** `DATABOX_MCP_LIST_METRICS`

List all metrics available for a data source, dataset, or merged dataset.

Retrieve available metrics with their keys, names, descriptions, and
dimensions.

IMPORTANT: Metrics are NOT only attached to data sources. A metric can
live on a data source, a dataset, OR a merged dataset. All three expose
a numeric id that is passed here as data_source_id. If you are looking
for a metric and don't know where it lives, check ALL of these and call
list_metrics for each candidate id:
    - list_data_sources(account_id) -> data source ids
    - list_data_source_datasets(data_source_id) -> dataset ids
    - list_merged_datasets(account_id) -> merged dataset ids
Do not assume the metric is on a data source just because the parameter
is named data_source_id.

Each metric has a unique metric_key (e.g. "GoogleAnalytics4@sessions",
"1234|custom_query_567", "4321|script_986"). When calling
load_metric_data, pass the full metric_key value exactly as returned -
do not split, truncate, or modify it in any way.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data_source_id` | integer | Yes | Numeric id of the data source, dataset, or merged dataset to list metrics for. This is the id returned by list_data_sources, list_data_source_datasets, or list_merged_datasets. |

### Load metric data

**Slug:** `DATABOX_MCP_LOAD_METRIC_DATA`

Load data for a metric over a date range.

Fetches chart-ready data from the Databox BFF. On hosts that support
MCP Apps, the result renders as an interactive chart widget.

The metric may belong to a data source, a dataset, or a merged dataset.
Pass the same numeric id you used with list_metrics to discover the
metric (from list_data_sources, list_data_source_datasets, or
list_merged_datasets) as data_source_id.

IMPORTANT: The metric_key must be the EXACT complete value returned by
list_metrics. Do NOT split, truncate, or modify the key in any way.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `end_date` | string | Yes | End date in YYYY-MM-DD format |
| `dimension` | string | No | Optional dimension key to break down by (e.g. "source") |
| `metric_key` | string | Yes | Complete metric key exactly as returned by list_metrics (e.g. "GoogleAnalytics4@sessions", "1234&#124;custom_query_567", "4321&#124;script_986"). Always use the full value - never extract just a portion of it. |
| `multiplier` | string | No | Number of days for the LastXDays* range types (e.g. 7, 30, 90). Required when range_type_id is LastXDays, LastXDaysWithoutCurrent, or LastXDaysRolling. |
| `start_date` | string | Yes | Start date in YYYY-MM-DD format |
| `metric_name` | string | No | Optional human-readable metric name as returned by list_metrics (e.g. "Sessions"). Used only as the chart label; when omitted the chart renders without a metric name. |
| `record_limit` | string | No | Deprecated; accepted for backward compatibility but currently ignored. Do not rely on it to limit records. |
| `range_type_id` | string | No | Use a preset date range type for correct "vs previous period" comparison. When set, start_date and end_date are ignored and the range is calculated relative to today. Valid values: WeekToDate, MonthToDate, PreviousWeek, PreviousMonth, LastXDays, LastXDaysWithoutCurrent, LastXDaysRolling, CustomRange. Use this when the user asks for standard periods like "this month", "this week", "last 30 days", etc. |
| `data_source_id` | integer | Yes | Numeric id of the data source, dataset, or merged dataset that the metric belongs to (the same id used with list_metrics) |
| `is_whole_range` | boolean | No | If True, returns single aggregated value for entire range. Automatically set to False when granulation_time_unit is provided. |
| `granulation_time_unit` | string | No | Time unit for time series (1=hour, 2=day, 3=week, 4=month). If not set, returns aggregated value. |

### Refresh chart data

**Slug:** `DATABOX_MCP_REFRESH_CHART_DATA`

Re-fetch chart data with new parameters.

Intended for the chart widget, which calls it when the user changes
date range, granulation, visualization type, or dimension. Note that
visibility=["app"] only hides the tool from the host's model-visible
tool list — it remains callable by any authenticated MCP client, so
inputs are validated like any public tool.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `filters` | string | No | JSON-encoded Filter object (optional) |
| `date_range` | string | Yes | JSON-encoded SimpleDateRange object |
| `metric_setup` | string | Yes | JSON-encoded MetricSetup object |
| `visualization` | integer | Yes | Visualization type (4=LINE, 5=BAR, 9=TABLE) |

### Search databoards

**Slug:** `DATABOX_MCP_SEARCH_DATABOARDS`

Search or list databoards (dashboards) in the workspace.

With a query, performs a fuzzy search ranked by relevance against the
board name, tags, and data source types. Without a query, lists all
databoards, optionally narrowed by filters.

Use this first to find a board, then call get_databoard_by_id with a
returned board_id to inspect its full block and metric configuration.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `query` | string | No | Optional search text. Omit (or pass "*") to list all boards. |
| `data_source_filter` | string | No | Optional list of data source type keys (e.g. ["GoogleAnalytics4"]) to keep only boards that use them. |
| `space_access_id_filter` | string | No | Optional list of connection IDs to keep only boards that include them (connection IDs appear in the space_access_ids of prior search results). |
