Upload Dataset
lexq_dataset_uploadUpload inline CSV or JSON content as a simulation dataset. The content is stored as a dataset, and its path is returned in the "path" field.
To use the returned path in lexq_simulation_start, set: dataset: { "type": "UPLOADED", "source": "UPLOADED_FILE", "path": "" }
The content travels inside the tool call, so this suits small datasets, and the hosted server at mcp.lexq.io limits the size of a request. For a larger file, use lexq_dataset_upload_file on the local server (lexq serve --mcp), or upload it with the CLI or the console and pass the returned path.
CSV example: userId,paymentAmount user_001,150000 user_002,50000
In CSV, a cell holding a JSON array, such as ["gold","vip"], is read as a list; quote the cell, as CSV requires for a value with commas.
JSON example: [{"userId":"user_001","paymentAmount":150000}, {"userId":"user_002","paymentAmount":50000}]
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"content": "<content>"
},
"name": "lexq_dataset_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | CSV or JSON content as string | |
| filename | No | Filename with extension (.csv or .json) | dataset.csv |