Skip to main content
Glama
RevRule MCP Server

RevRule MCP Server

Official
by Payloadhq

revrule_simulate_event

Dry-run a revenue event against a graph's rules to preview results with zero side effects: nothing is recorded and no payout is prepared or submitted.

Instructions

Dry-run a revenue event against a graph's rules and see what the rules would produce, with ZERO side effects: nothing is recorded, no payout is prepared or submitted. The event payload is wrapped in {event} for the existing rail REST API. (Rail route: POST /v1/graphs/{graph_id}/simulate.)

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": {
      "graph_id": "<graph_id>",
      "event": "<event>"
    },
    "name": "revrule_simulate_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
eventYesThe revenue event payload to simulate, passed through to the rail as-is.
graph_idYesThe RevRule graph id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does the most important part: it explicitly declares the non-mutating profile (nothing recorded, no payout prepared or submitted) and the underlying transport (POST to /v1/graphs/{graph_id}/simulate). It does not cover auth/permission requirements or what the simulation response contains, so it is strong but not complete.

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?

The side-effect guarantee and the dry-run purpose are front-loaded in the first sentence, with supporting detail after. The trailing parenthetical REST route is useful for debugging but is the one element that could be trimmed for a purely selection-focused reader.

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?

For a two-parameter tool with full schema coverage, the description covers what it does, what it does not do, and how the payload is routed. The remaining gap is the return value: "see what the rules would produce" is vague and there is no output schema to compensate, so an agent cannot anticipate the result shape.

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 both parameters are already documented, and the description's note that the payload is "wrapped in {event}" mostly restates what the schema says ("passed through to the rail as-is"). It adds only marginal framing about the wrapping convention, which is the baseline-3 case where the schema does the heavy lifting.

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?

"Dry-run a revenue event against a graph's rules and see what the rules would produce" names a specific verb (simulate), a specific resource (revenue event evaluated against a graph's rule set), and the output intent (what the rules would produce). This is inherently separable from the read-oriented siblings (get_graph, list_payout_evidence), since none of them evaluate an event.

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?

"Dry-run" plus "ZERO side effects: nothing is recorded, no payout is prepared or submitted" gives a clear selection context: use this to preview outcomes without committing. It stops short of explicitly stating when NOT to use it (e.g., that this is not the tool for actually submitting a live event) or naming an alternative, so it never reaches full when/when-not guidance.

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