Skip to main content
Glama
RevRule MCP Server

RevRule MCP Server

Official
by Payloadhq

revrule_get_graph

Fetch a RevRule revenue entitlement graph by ID to inspect its participants, rules, and ledger wiring. Use this read-only lookup to understand how entitlements are structured.

Instructions

Fetch one of your RevRule revenue entitlement graphs by id: its participants, rules, and ledger wiring. Read-only. (Rail route: GET /v1/graphs/{graph_id}.)

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>"
    },
    "name": "revrule_get_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
graph_idYesThe RevRule graph id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.8/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 full burden and does disclose the key trait: it explicitly says 'Read-only.' The parenthetical Rail route (GET /v1/graphs/{graph_id}) further helps an agent map errors and confirm the underlying semantics. It does not describe missing-id or not-authorized behavior, which keeps it short of 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.

Conciseness5/5

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

One front-loaded sentence names the action and resource then enumerates the payload contents, followed by a two-word behavior note and a compact route reference. Nothing is redundant and the most important information comes first.

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 one-parameter read tool this is nearly complete: it covers what is fetched, that the call is read-only, and—in the absence of an output schema—summarizes the returned structure (participants, rules, ledger wiring). Only error/failure conditions and identifier sourcing are left implicit.

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?

There is a single required parameter with 100% schema description coverage, so the schema already documents it. The description's 'by id' adds no syntax, format, or sourcing guidance beyond that, so the baseline of 3 applies.

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?

States a specific verb ('Fetch') and resource ('RevRule revenue entitlement graph') and even enumerates what the graph contains (participants, rules, ledger wiring). The resource is clearly distinct from siblings like revrule_list_payout_evidence or revrule_simulate_event, though no sibling is named explicitly.

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?

The 'by id' phrasing implies the required precondition (you must already have a graph id), but there is no explicit when-to-use or when-not-to-use guidance, and no alternative retrieval tool is referenced. Usage is inferable rather than stated.

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