upsert_entity
Create a new entity in an ERD with logicalName, or update an existing entity by entityId. Only provided fields change; physical name is auto-derived.
Instructions
Creates an entity (no entityId, logicalName required) or updates one (entityId given, only provided fields change). The physical name is derived automatically.
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": {
"source": "<source>"
},
"name": "upsert_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId}) | |
| entityId | No | ||
| description | No | ||
| logicalName | No |