Upload Data
upload_dataImport a CSV dataset into Simba to prepare it for Bayesian marketing mix model building and receive the file ID needed for model creation.
Instructions
Upload a CSV dataset to Simba for use in model building.
Provide EXACTLY ONE of csv_content (raw CSV text) or csv_path (a file path on the machine running this MCP server). Prefer csv_path for anything beyond trivial size — it avoids passing megabytes of CSV through the conversation.
The CSV should follow the canonical schema: one row per time period with date, KPI, multiplier, hierarchy, media activity/spend columns, and optional control variables.
IMPORTANT:
CSV only (not Excel). Maximum file size: 10 MB (API-enforced).
Row minimum: check get_data_schema -> x-simba-constraints.min_rows for the declared minimum; enforcement may be more permissive, and the upload response's
warningsfield is authoritative. More rows = tighter posteriors (104+ weekly rows recommended).Media columns must follow naming: {channel}_activity and {channel}_spend.
Use 0 for inactive periods, not blank or NA.
csv_path is only available when the server runs locally (stdio). On HTTP/SSE deployments it is disabled unless SIMBA_MCP_ALLOW_LOCAL_FILES=1.
Args: csv_content: The full CSV text content (not base64, just raw CSV text). csv_path: Path to a .csv file readable by the MCP server process. name: Optional dataset name for identification. Defaults to the file stem when csv_path is used. filename: Optional original filename to record alongside the dataset. roles: Optional column roles for get_data_report, stored with the dataset: {column: role} or {column: {"role": role, "channel": name}}. Roles are declared, never guessed; see get_data_report for the vocabulary. An unknown role or a column the CSV lacks is refused.
Returns the uploaded file ID (needed for create_model), row/column counts, and any validation warnings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| roles | No | ||
| csv_path | No | ||
| filename | No | ||
| csv_content | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||