Skip to main content
Glama

Dry-Run Rule

dry_run_rule
Read-only

Replay a candidate rule against the recent audit log without firing actions. Shows how many audit events the rule would have matched and the details of each match. Use to test a rule before saving. sampleDays clamped to [1, 90], maxResults clamped to [1, 100]. Read-only.

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": {
      "rule": "<rule>"
    },
    "name": "dry_run_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
ruleYesThe rule definition to test — JSON object with the same shape as a rule upsert request (scope, name, trigger, conditions, actions, executionMode, etc.).
maxResultsNoMax matches to return (1-100, default 25).
sampleDaysNoDays of audit history to scan (1-90, default 30).

Output Schema

NameRequiredDescriptionDefault
okNo
dryRunNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and destructiveHint=false, but the description goes further: it says no actions are fired, describes what is returned (match count plus match details), and repeats 'Read-only' for emphasis. It does not discuss cost, log-window limits, or what happens if no events match, which keeps it from a 5.

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?

Five short sentences with the core action front-loaded. Minor waste in restating the clamping ranges already in the schema and in the closing 'Read-only' which duplicates the annotations.

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

Completeness4/5

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

An output schema covers return shape, so the description only needs to say it reports match counts and details, which it does. For a read-only simulation over a deeply nested rule object, the essential context (no side effects, test-before-save) is present; a note on empty-result behavior would complete it.

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 coverage is 100%, so all three parameters are already documented, including the same 1-90 and 1-100 ranges and defaults. The description's clamping statement largely restates the schema rather than adding new meaning, so baseline 3 applies.

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 ('Replay a candidate rule against the recent audit log') plus the defining non-effect ('without firing actions'), and the return content (match count and per-match details). This separates it from create_rule, run_rule_now, and check_rule_conflicts without needing to name them.

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

Usage Guidelines4/5

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

'Use to test a rule before saving' gives a clear when-to-use condition tied to a workflow stage. It stops short of explicitly naming an alternative (e.g. run_rule_now for a saved rule) or stating when not to use it, so it is clear context but not full routing guidance.

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