Dry Run
lexq_dry_runExecute a single dry run against a version. Tests how rules evaluate given input facts without side effects. Not billed and not counted toward the plan's usage. Dry runs, dry run compares, and single-decision replays share two limits for each organization: 60 evaluations per minute and 1000 per UTC day; a compare counts as two. Past the per-minute limit, a call fails with 429 (C-007); wait a minute before trying again. Past the daily limit, a call fails with 429 (AN-041) until 00:00 UTC. A call refused by the per-minute limit does not count toward the daily limit.
Returns: inputFacts — the facts object you sent inputContexts — the contexts object you sent ({} when you sent none) mutatedFacts — input facts changed by rule actions (e.g. MUTATE_FACT reduces paymentAmount) generatedVariables — keys that rule actions added (e.g. a SET_FACT target the request did not send), plus {targetVar}__delta for each MUTATE_FACT target whose value changed. The delta is the final value minus the value sent. A fact changed only by SET_FACT or BLOCK gets no __delta. executionTraces — per-rule match status decisionTraces — per-rule decision (SELECTED / NO_MATCH / BLOCKED / etc.)
Example facts: {"paymentAmount": 100000, "customerTier": "VIP"}
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": {
"versionId": "<versionId>",
"facts": "<facts>"
},
"name": "lexq_dry_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| facts | Yes | JSON string of facts object, e.g. {"paymentAmount":100000} | |
| contexts | No | JSON string of the contexts object your application sends with an execution request, e.g. {"channel":"web"}. A dry run evaluates only the version IDs you pass, so contexts.trafficKey never selects a version. Omit it to send no contexts. | |
| versionId | Yes | Policy version ID to test against | |
| includeDebugInfo | No | Include execution and decision traces |