upload_data
Upload a CSV dataset to Simba for marketing mix model building. Supply CSV content or a file path to receive a file ID and validation warnings.
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.
Returns the uploaded file ID (needed for create_model), row/column counts, and any validation warnings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| csv_path | No | ||
| filename | No | ||
| csv_content | No |