evaluate_action
Assess a proposed blockchain transaction before execution to receive an ALLOW, WARN, or BLOCK verdict, a risk score, and the reasoning behind it.
Instructions
Evaluate a proposed blockchain action before executing it.
Call this BEFORE submitting any transaction on behalf of a user or agent. Returns a JSON object with a decision ("ALLOW", "WARN", or "BLOCK"), a 0-100 risk score, and a human-readable explanation of which signals drove the decision. Treat "BLOCK" as a hard stop and "WARN" as something that needs explicit user confirmation before proceeding.
Args: agent_id: Stable identifier for the calling agent (used for reputation history - reuse the same id across calls). wallet: The wallet address initiating the action. chain: Chain name, e.g. "ethereum", "base", "arbitrum", "polygon". action_type: One of "swap", "transfer", "approve", "contract_call", "bridge". target: Contract or recipient address, if applicable. from_token: Token symbol being sent/sold, if applicable. to_token: Token symbol being received/bought, if applicable. amount: Transaction amount in the relevant unit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ||
| amount | No | ||
| target | No | ||
| wallet | Yes | ||
| agent_id | Yes | ||
| to_token | No | ||
| from_token | No | ||
| action_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |