analyze_transaction
Assess real-time transactions for fraud risk by comparing against known patterns, returning a probability score to flag suspicious activity.
Instructions
Analyzes a real-time transaction against known patterns to return a fraud probability score
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": {
"transactionId": "<transactionId>",
"userId": "<userId>",
"amount": "<amount>",
"currency": "<currency>",
"merchantCategory": "<merchantCategory>",
"location": "<location>",
"deviceId": "<deviceId>",
"timestamp": "<timestamp>"
},
"name": "analyze_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Transaction amount | |
| userId | Yes | User ID | |
| currency | Yes | Currency code (e.g., USD) | |
| deviceId | Yes | Device identifier | |
| location | Yes | Transaction location | |
| timestamp | Yes | ISO 8601 timestamp | |
| transactionId | Yes | Unique transaction identifier | |
| merchantCategory | Yes | Merchant category (e.g., electronics, restaurant) |