Create Fact Definition
lexq_facts_createRegister a new input variable. Key starts with a letter, then letters, numbers, and underscores (e.g. paymentAmount). Casing is not enforced. Types: STRING, NUMBER, BOOLEAN, LIST_STRING, LIST_NUMBER.
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": {
"key": "<key>",
"name": "<name>",
"type": "<type>"
},
"name": "lexq_facts_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Variable key. Any casing; must start with a letter. | |
| name | Yes | Display name | |
| type | Yes | Value type | |
| isPii | No | Mark as PII — masked on every read surface, revealable only in the console (audited) | |
| isRequired | No | isRequired is stored on the definition only; the engine does not read it. | |
| description | No | Description | |
| valueDomain | No | Which values this fact accepts. Omit for no value domain. STRING and LIST_STRING take allowedValues only; NUMBER and LIST_NUMBER take all three; BOOLEAN takes none. Declaring it lets the rule editor offer a dropdown and rejects a rule literal that could never match. |