Fraud - ToolGate tool package

examples.fraud

Tools: fraud.alerts, fraud.transaction, fraud.risk-score, fraud.freeze-card. Part of the mocked tool examples.

By ToolGate Examples Signed

Java 17, protocol 2

Download

Use in ToolGate

In the ToolGate console, open Server packages, then Marketplace, and install this package. These values identify exactly what you install:

{
    "marketplace": "olo-labs-marketplace",
    "packageId": "examples.fraud",
    "version": "0.1.0",
    "packageDigest": "sha256:5a5c2e72fcd7ee35ca6fb9239948cda0d677de348e8306e6a5cd3625b4c7f91c"
}

Overview

Fraud detection (mocked)

Tools: fraud.alerts, fraud.transaction, fraud.risk-score, fraud.freeze-card. Part of the mocked tool examples.

A card-fraud analyst's desk. fraud.alerts lists transactions at or above a risk score, riskiest first. fraud.transaction returns the details. fraud.risk-score scores a transaction from named rules and says which fired, so the agent can explain the decision. fraud.freeze-card freezes the card and opens a case, once per reference.

Rule Points
Amount 10x or more the customer's average (AMOUNT_SPIKE) 30
Amount 3x or more (AMOUNT_ABOVE_USUAL) 15
Outside the customer's home country 25
Device not seen before 20
3 or more card transactions in the previous 10 minutes 25
Gift cards, crypto or money transfer 25

The score is capped at 100. 90 and over is CRITICAL (freeze the card), 70 HIGH (hold), 40 MEDIUM (ask the customer to confirm), otherwise LOW.

Account ACC-77 normally spends in Portugal: T-1 is a usual grocery payment (0), T-2 a large foreign electronics purchase from a new device (75), T-3 one of a burst of gift card purchases (100).

Try it

cp toolgate.dev.example.json toolgate.dev.json   # never commit toolgate.dev.json
toolgate dev                                      # an MCP server over stdio
toolgate pack                                     # build/toolgate/fraud-detection-0.1.0.tgpkg

Things to ask a model connected to it:

  • "Which transactions need review right now?"
  • "Why was T-2 flagged? Should we block it?"
  • "Freeze the card for T-3 and give me the customer message."

Tools

fraud.alerts Read only
Fraud alerts Lists transactions whose risk score is at or above a threshold, riskiest first.
fraud.freeze-card Non idempotent
Freeze a card Freezes a card so new transactions are declined (mocked: nothing changes) and opens a fraud case. A repeat with the same reference returns the first case.
fraud.risk-score Read only
Score a transaction Scores a transaction's fraud risk from named rules (amount against the customer's average, foreign country, new device, velocity, high-risk category) and recommends an action.
fraud.transaction Read only
Get a transaction Returns a card transaction's details: amount, merchant, category, country, device and velocity.

Settings it needs

No settings.

Versions

VersionAPI changeCompatibilityPublished
0.1.0 none Java 17, protocol 2 15 Oct 2026 - 11:55

Publisher

ToolGate Examples, OLO Labs

Publisher details are supplied by the publisher. Validation checks package format, not code safety.