Skip to main content
Glama

revclamp_evaluate_ghost_usage

Detect unpaid ghost usage by evaluating an AI/API usage event against multi-subscription Stripe state, enforcing fail-closed pagination and 0-14 day dunning grace.

Instructions

Evaluate whether a customer's AI/API usage event is unpaid ghost usage across multi-subscription Stripe state (enforces fail-closed pagination and 0-14d dunning grace).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
customerIdYes
occurredAtSecNo
subscriptionsYesStripe subscriptions list object ({ data: [...], has_more: false }) or array.
usageTimestampSecNo
subscriptionsHasMoreNoMust be explicitly false when passing a raw subscriptions array.
dunningGracePeriodDaysNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does add important domain behavior: fail-closed pagination and a 0-14 day dunning grace window. It still omits whether the operation is read-only, what it returns, and how incomplete or paginated subscription data affects the result.

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?

The definition is a single dense sentence with the core evaluation purpose front-loaded. There is no filler or repetition, and every clause adds domain-specific information.

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?

There is no output schema and no annotations, so the description should clarify the decision result and key parameter behavior. It does not explain what the evaluation returns, how fail-closed behavior manifests, or how the two timestamp parameters differ, leaving significant gaps for a 6-parameter tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 33%, so the description should compensate more. It contextualizes subscriptions, pagination via 'fail-closed,' and the dunning grace range, but it does not explain customerId or distinguish occurredAtSec from usageTimestampSec.

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 gives a specific verb ('Evaluate') and a precise resource/decision ('unpaid ghost usage') scoped to multi-subscription Stripe state. It is not a tautology, but it does not explicitly distinguish this tool from sibling revenue/compliance tools beyond the unique 'ghost usage' framing.

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 intended usage is implied by 'Evaluate whether ... is unpaid ghost usage,' so an agent can infer when this tool is relevant. However, there are no explicit when-to-use/when-not-to-use conditions, prerequisites, or comparisons to the sibling tools.

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