changedOutput schema / properties / result / anyOf
Previous value: -[
- {
- "description": "Result of a pre-trade risk check.",
- "properties": {
- "audit_hash": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "SHA-256 hash chaining this decision."
- },
- "audit_seq": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "Monotonic sequence number of this decision."
- },
- "calculated_notional_usd": {
- "description": "USD value of the proposed trade.",
- "type": "number"
- },
- "decision": {
- "description": "Final verdict. 'deny' is a hard stop.",
- "enum": [
- "allow",
- "warn",
- "deny"
- ],
- "type": "string"
- },
- "error": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "If present, no verdict was produced. Treat as a hard stop; do not execute the trade."
- },
- "max_trade_usd": {
- "description": "USD ceiling for this tier.",
- "type": "number"
- },
- "price_source": {
- "description": "Where the price came from.",
- "enum": [
- "oracle",
- "uniswap_v4",
- "fallback_default",
- "unavailable"
- ],
- "type": "string"
- },
- "price_usd": {
- "description": "Asset price used for the valuation.",
- "type": "number"
- },
- "reasons": {
- "description": "Human-readable reasons. Entries prefixed with 'ADVISORY:' are non-blocking context; all other entries drove the decision.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "request_id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "Echoed idempotency key, if provided."
- },
- "risk_score": {
- "description": "Composite risk score from 0 (safe) to 100 (blocked).",
- "type": "integer"
- },
- "tier": {
- "description": "Tier the wallet was evaluated at (1-3).",
- "type": "integer"
- }
- },
- "required": [
- "decision",
- "reasons",
- "tier",
- "max_trade_usd",
- "calculated_notional_usd",
- "price_usd",
- "price_source",
- "risk_score"
- ],
- "type": "object"
- },
- {
- "description": "x402 payment challenge returned when no proof is supplied.\n\nThe client is expected to settle this payment on-chain and retry the\ntool with the resulting proof carried in `payment_proof`.",
- "properties": {
- "amount": {
- "description": "Amount in asset base units (6 decimals for USDG).",
- "type": "string"
- },
- "asset": {
- "description": "USDG contract address.",
- "type": "string"
- },
- "description": {
- "description": "Human-readable purpose.",
- "type": "string"
- },
- "error": {
- "default": null,
- "type": "null"
- },
- "max_timeout_seconds": {
- "description": "Payment validity window in seconds.",
- "type": "integer"
- },
- "network": {
- "description": "CAIP-2 network id, e.g. eip155:4663.",
- "type": "string"
- },
- "pay_to": {
- "description": "Recipient address for the payment.",
- "type": "string"
- },
- "resource": {
- "description": "Resource URL the payment unlocks.",
- "type": "string"
- },
- "status": {
- "const": "payment_required",
- "default": "payment_required",
- "type": "string"
- },
- "tier_granted": {
- "description": "Tier the paid proof grants (2 for x402 paid access).",
- "type": "integer"
- }
- },
- "required": [
- "network",
- "asset",
- "amount",
- "pay_to",
- "resource",
- "description",
- "max_timeout_seconds",
- "tier_granted"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "description": "Result of a pre-trade risk check.",
+ "properties": {
+ "audit_hash": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "SHA-256 hash chaining this decision."
+ },
+ "audit_seq": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Monotonic sequence number of this decision."
+ },
+ "calculated_notional_usd": {
+ "default": 0,
+ "description": "USD value of the proposed trade.",
+ "type": "number"
+ },
+ "decision": {
+ "default": "deny",
+ "description": "Final verdict. 'deny' is a hard stop.",
+ "enum": [
+ "allow",
+ "warn",
+ "deny"
+ ],
+ "type": "string"
+ },
+ "detail": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Human-readable detail accompanying `error`, if any."
+ },
+ "error": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "If present, no verdict was produced. Treat as a hard stop; do not execute the trade."
+ },
+ "guidance": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Suggested next step accompanying `error`, if any."
+ },
+ "max_trade_usd": {
+ "default": 0,
+ "description": "USD ceiling for this tier.",
+ "type": "number"
+ },
+ "price_source": {
+ "default": "unavailable",
+ "description": "Where the price came from.",
+ "enum": [
+ "oracle",
+ "uniswap_v4",
+ "fallback_default",
+ "unavailable"
+ ],
+ "type": "string"
+ },
+ "price_usd": {
+ "default": 0,
+ "description": "Asset price used for the valuation.",
+ "type": "number"
+ },
+ "reasons": {
+ "description": "Human-readable reasons. Entries prefixed with 'ADVISORY:' are non-blocking context; all other entries drove the decision.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "request_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Echoed idempotency key, if provided."
+ },
+ "risk_score": {
+ "default": 100,
+ "description": "Composite risk score from 0 (safe) to 100 (blocked).",
+ "type": "integer"
+ },
+ "tier": {
+ "default": 1,
+ "description": "Tier the wallet was evaluated at (1-3).",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "description": "x402 payment challenge returned when no proof is supplied.\n\nThe client is expected to settle this payment on-chain and retry the\ntool with the resulting proof carried in `payment_proof`.",
+ "properties": {
+ "amount": {
+ "description": "Amount in asset base units (6 decimals for USDG).",
+ "type": "string"
+ },
+ "asset": {
+ "description": "USDG contract address.",
+ "type": "string"
+ },
+ "description": {
+ "description": "Human-readable purpose.",
+ "type": "string"
+ },
+ "error": {
+ "default": null,
+ "type": "null"
+ },
+ "max_timeout_seconds": {
+ "description": "Payment validity window in seconds.",
+ "type": "integer"
+ },
+ "network": {
+ "description": "CAIP-2 network id, e.g. eip155:4663.",
+ "type": "string"
+ },
+ "pay_to": {
+ "description": "Recipient address for the payment.",
+ "type": "string"
+ },
+ "resource": {
+ "description": "Resource URL the payment unlocks.",
+ "type": "string"
+ },
+ "status": {
+ "const": "payment_required",
+ "default": "payment_required",
+ "type": "string"
+ },
+ "tier_granted": {
+ "description": "Tier the paid proof grants (2 for x402 paid access).",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "network",
+ "asset",
+ "amount",
+ "pay_to",
+ "resource",
+ "description",
+ "max_timeout_seconds",
+ "tier_granted"
+ ],
+ "type": "object"
+ }
+]