ln_anomaly_check
Detect payment anomalies by comparing a proposed amount against a vendor's historical averages. Returns a verdict of normal, high, or first_time.
Instructions
Check if a proposed payment amount is normal for a vendor.
Use this before making a payment to catch price anomalies. Compares the proposed amount against historical averages.
Args: vendor: Vendor name or domain. amount_sats: Proposed payment amount in satoshis.
Returns: Anomaly report: verdict (normal/high/first_time), context, and historical average.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vendor | Yes | ||
| amount_sats | Yes |