Apply Domain Template
lexq_domain_templates_applyApply a domain template to the current tenant. Creates the template's fact definitions and a new policy group pre-populated with its sample rules as a DRAFT version. Apply never overwrites existing schema: a key that already exists with the same definition is kept as it is. Run lexq_domain_templates_preview first. If its factConflicts is not empty, apply fails with P-061 and creates nothing until those facts are deleted or changed to match the template. A template whose isAvailable is false cannot be applied.
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": {
"template": "<template>"
},
"name": "lexq_domain_templates_apply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template | Yes | Domain template key to apply (e.g. ECOMMERCE). | |
| customName | No | Optional custom name for the policy group that gets created. If omitted, the template's default name is used. |