Skip to main content
Glama
RevClamp MCP Server

RevClamp MCP Server

revclamp_audit_revenue_leakage

Audit 90 days of B2B revenue leakage and Visa CE 3.0 readiness using Stripe subscriptions, usage events, and disputes to identify billing gaps and compliance risks.

Instructions

Runs a deterministic 90-day B2B revenue leakage and Visa CE 3.0 readiness audit across caller-supplied Stripe subscriptions (2025-03-31.basil item-level periods), usage events, and disputes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "revclamp_audit_revenue_leakage"
  }
}

Input Schema

NameRequiredDescriptionDefault
demoNoSet true only to generate a labeled sample preview when customers/usageEvents are omitted.
disputesNoOptional array of Stripe dispute objects.
customersNoArray of Stripe customer objects with subscriptions ({ id, subscriptions: { data, has_more } }).
usageEventsNoArray of metered API/SaaS usage events ({ customer_id, event_name, occurred_at }).
costPerEventCentsNo
dunningGracePeriodDaysNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.20.29
  2. Removedv1.0.1
  3. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description bears the full behavioral-disclosure burden. It adds some useful context by saying the audit is deterministic, covers a 90-day window, and expects Stripe 2025-03-31.basil item-level subscription periods, but it does not state whether the tool is read-only, what permissions or auth are required, whether it mutates data, or what its output/error behavior is.

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 definition is a single front-loaded sentence that states the core action and scope without repetition or filler. It is appropriately sized for a tool with no annotations and no output schema, though the sentence is dense and packs technical details into one long clause.

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

Completeness2/5

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

For a complex audit tool with no annotations, no output schema, and only 67% parameter-description coverage, the description is incomplete. It identifies the audit scope and primary input categories but omits the return/report shape, safety profile, prerequisites, and semantics for costPerEventCents and dunningGracePeriodDays.

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 67%: 'demo', 'disputes', 'customers', and 'usageEvents' have schema descriptions, while 'costPerEventCents' and 'dunningGracePeriodDays' do not. The description mentions subscriptions, usage events, and disputes, aligning with three parameters, but it does not add meaning for the two undocumented economic parameters. A 3 is appropriate because the schema carries most of the semantic load and the description provides only partial mapping.

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?

The description uses a specific verb ('Runs') and clearly names the resource: a 90-day B2B revenue leakage and Visa CE 3.0 readiness audit. It also scopes the tool to caller-supplied Stripe subscriptions, usage events, and disputes. It does not explicitly differentiate itself from related sibling tools such as revclamp_stage_stripe_dispute_ce3 or revclamp_lint_dispute_evidence, so it falls short of a 5.

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

Usage Guidelines2/5

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

The description gives no guidance on when to use this tool versus alternatives, nor does it state prerequisites or exclusions. The schema's 'demo' parameter hints at a sample-preview mode, but the description itself does not explain when to invoke the audit, when to avoid it, or how it relates to sibling audit/dispute tools.

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