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 — normalized input facts inputContexts — the contexts object you sent ({} when you sent none) mutatedFacts — input facts changed by rule actions (e.g. MUTATE_FACT mutates paymentAmount) generatedVariables — system-generated values; every fact in mutatedFacts gets a paired {factName}__delta key (signed difference) executionTraces — per-rule match status decisionTraces — per-rule decision (SELECTED / NO_MATCH / BLOCKED / etc.)
Example input: { "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 |