Sync the ontology from data
ontology_syncPalantir Foundry style object sync over the model text (ADR 0033). Definitions annotated @ObjectType name the dataset that backs them and its primary key; @DataColumn binds attributes to columns; @LinkType turns a foreign key or a link dataset into connections. Send those datasets' contents (CSV, TSV or JSON; export a spreadsheet to CSV first) under the dataset names the model binds. Records are matched to objects by primary key, so a re-sync updates the objects it made, adds new records and removes ones the data no longer has (remove: false keeps them). Returns the plan (every create, update, removal and link, and each row it could not use) and the new text with the plan applied as one compiler checked batch; text is null when nothing changes. Nothing is saved: show the user the plan, then use the returned text.
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": {
"text": "<text>",
"datasets": "<datasets>"
},
"name": "ontology_sync"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The complete SysML v2 model text. The server keeps no state: pass the whole current text on every call, and after an edit use the text the edit returned. | |
| remove | No | Remove objects and links whose record is gone from the dataset (default true). | |
| datasets | Yes | ||
| object_types | No | Qualified names of the @ObjectType definitions to sync (default all whose dataset is given). Link types between them follow. |