Skip to main content
Glama
This connector has been deprecated

This listing duplicates LexQ (io.lexq/lexq), which follows the official MCP Registry entry. Use that listing instead.

Dry Run

lexq_dry_run
Read-only

Execute 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

NameRequiredDescriptionDefault
factsYesJSON string of facts object, e.g. {"paymentAmount":100000}
contextsNoJSON 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.
versionIdYesPolicy version ID to test against
includeDebugInfoNoInclude execution and decision traces

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / contexts
      Added value: +{
      +  "description": "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.",
      +  "type": "string"
      +}
  2. Changed5 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / facts / description
      Previous value: -"JSON string of facts object, e.g. {\"payment_amount\":100000}"New value: +"JSON string of facts object, e.g. {\"paymentAmount\":100000}"
    • removedInput schema / properties / mockExternalCalls
      Removed value: -{
      -  "default": true,
      -  "description": "Mock external integration calls",
      -  "type": "boolean"
      -}
    • addedInput schema / properties / versionId / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  3. First observed

TDQS

A4.2/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already establish a safe read-only, non-open-world operation, and the description goes well beyond them: it discloses dual rate limits (60/min, 1000/day, compare counting as two), the exact failure codes (429 C-007, 429 AN-041) with remediation ('wait a minute', 'until 00:00 UTC'), and the exemption that per-minute refusals don't consume the daily quota.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads purpose in the first two sentences, then rate limits, then return shape; the structured returns block is justified because no output schema exists. It is dense but nearly every sentence carries operational information, with only mild redundancy between the headline 'no side effects' and 'not billed'.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter tool with no output schema, the description supplies the missing return documentation (inputFacts, mutatedFacts, generatedVariables with the {factName}__delta pairing, executionTraces, decisionTraces) and the full quota/error model, so an agent can invoke it and interpret failures without further context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents versionId, facts, contexts, and includeDebugInfo, including the caveat that contexts.trafficKey never selects a version. The description adds an example input payload that clarifies facts shape, but gives no additional per-parameter semantics beyond that, which is the expected baseline with full schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Execute a single dry run against a version') plus the effect ('Tests how rules evaluate given input facts without side effects'), which distinguishes it from live evaluation and, by the phrase 'single dry run', from the compare sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implies when to use it — to test rule evaluation without side effects, with no billing impact — and acknowledges that dry run compares and single-decision replays draw on the same quotas. However, it never explicitly says when to choose lexq_dry_run_compare or a replay instead, leaving the routing decision to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources