Skip to main content
Glama

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 — 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

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. First observed

TDQS

A4/5.0
Behavior5/5

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

Goes well beyond the readOnly/destructive annotations: it states the call is not billed and not counted against plan usage, documents the shared 60/min and 1000/day limits (a compare counts as two), and names the failure modes 429 C-007 and 429 AN-041 with reset behavior at 00:00 UTC and the note that per-minute rejections don't consume the daily quota. That is exactly the operational context an agent needs to retry correctly.

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?

Purpose is front-loaded, followed by limits and then a clearly labeled Returns block, so an agent can stop reading at any layer. The rate-limit paragraph is dense with codes and could be tightened, but each sentence carries distinct operational information.

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?

With no output schema, the description compensates by enumerating every return field including the non-obvious mutatedFacts, generatedVariables and __delta semantics, which an agent could not guess. Combined with the throttling and error-code rules, nothing needed to invoke or interpret the call is missing.

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 versionId, facts, contexts and includeDebugInfo are already documented in the schema, making 3 the baseline. The description adds a concrete facts example but no meaning beyond that, and its inline example shows a JSON object while the schema declares facts as a JSON-encoded string, a minor mismatch the schema resolves.

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

Purpose4/5

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

"Execute a single dry run against a version. Tests how rules evaluate given input facts without side effects." gives a specific verb, resource and scope, and the word "single" implicitly separates it from lexq_dry_run_compare. It never names the sibling explicitly, so an agent must infer which tool to use for multi-version comparison.

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?

Usage is implied rather than stated: the tool tests how rules evaluate given facts without side effects, which suggests a pre-deployment validation scenario. There is no explicit when-to-use or when-not-to-use guidance and no routing sentence pointing to lexq_dry_run_compare.

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.