cml_add_domain_event
Add a domain event to an aggregate in a bounded context. Specify the event name and optional attributes to document state changes.
Instructions
Add a domain event 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_domain_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the domain event | |
| attributes | No | Event attributes | |
| contextName | Yes | Name of the bounded context | |
| aggregateName | Yes | Name of the aggregate |