Evaluate Trade
evaluate_tradePre-trade risk check for a proposed trade. Call this BEFORE executing any trade and treat a "deny" decision as a hard stop.
Evaluated at a fixed Tier 1 ceiling ($5,000 notional) — MCP callers do not get COLR tier gating. For higher tiers, use the REST API with wallet-signature authentication.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | "buy" or "sell". | |
| asset | Yes | Asset symbol, e.g. NVDA, AAPL, TSLA, USDG. | |
| amount | Yes | Quantity in token units — NOT a pre-computed USD value. | |
| wallet | Yes | EVM wallet address (0x...) the trade would execute from. | |
| request_id | No | Optional idempotency key. | |
| contract_address | Yes | Token contract address (0x...). Must match the official registry address for that symbol, or the trade is denied as a suspected fake token. | |
| max_slippage_bps | No | Max slippage in basis points (default 100). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | Yes | Tier the wallet was evaluated at (1-3). | |
| error | No | If present, no verdict was produced. Treat as a hard stop; do not execute the trade. | |
| reasons | Yes | Human-readable reasons. Entries prefixed with 'ADVISORY:' are non-blocking context; all other entries drove the decision. | |
| decision | Yes | Final verdict. 'deny' is a hard stop. | |
| audit_seq | No | Monotonic sequence number of this decision. | |
| price_usd | Yes | Asset price used for the valuation. | |
| audit_hash | No | SHA-256 hash chaining this decision. | |
| request_id | No | Echoed idempotency key, if provided. | |
| risk_score | Yes | Composite risk score from 0 (safe) to 100 (blocked). | |
| price_source | Yes | Where the price came from. | |
| max_trade_usd | Yes | USD ceiling for this tier. | |
| calculated_notional_usd | Yes | USD value of the proposed trade. |