cml_add_identifier
Creates an ID Value Object for a given aggregate to replace primitive String IDs, following Domain-Driven Design best practices.
Instructions
Create an ID Value Object following DDD best practices. Use this instead of primitive String IDs to properly model identifiers as Value Objects.
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_identifier"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the identifier (e.g., "ExecutionId", "TaskId"). Will be normalized to end with "Id" | |
| contextName | Yes | Name of the bounded context | |
| aggregateName | Yes | Name of the aggregate |