cml_add_entity
Adds a new entity to an aggregate within a bounded context, specifying attributes and root status to model domain-driven design.
Instructions
Add an entity to an aggregate
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": {
"contextName": "<contextName>",
"aggregateName": "<aggregateName>",
"name": "<name>"
},
"name": "cml_add_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the entity | |
| attributes | No | Entity attributes | |
| contextName | Yes | Name of the bounded context | |
| aggregateName | Yes | Name of the aggregate | |
| aggregateRoot | No | Whether this is the aggregate root |