Create Datasets Tool
create-datasetsCreate one or many custom datasets in a project. Pass user columns only; catalog system columns are added automatically. fact_id and dim_id are added only when a column with that name is included. The catalog supplies their definition. is_primary_key comes from the request and is allowed only on upsert. write_mode is upsert or append_only. versioned is accepted and reported as append_only. Character length comes from value_type, not a free max length. If any table fails validation, nothing in the call is created.
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": {
"project_id": "<project_id>",
"tables": "<tables>"
},
"name": "create-datasets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space | No | Space slug. Required when the token is bound to more than one space. Omit it when the token has one space. | |
| tables | Yes | One object creates one dataset. Several objects are created together, or not at all if any object is invalid. | |
| project_id | Yes | Project that will own the datasets. It must belong to the token space. |