preflight_action
Agent Action Gate ($0.02 USDC flat; stable MCP tool name preflight_action). Use before an AI agent performs an external action. Evaluates the required safety, trust, spending and transaction checks and returns ALLOW, REVIEW, REQUIRE_APPROVAL or DENY. Use before opening an untrusted URL, installing a dependency, calling an unfamiliar MCP/tool, spending funds, submitting a transaction, or consuming untrusted external content. Do not use for pure local deterministic computation or when no external action/risk exists. Does not assess seller reputation. Missing or skipped relevant checks cannot produce ALLOW. REQUIRE_APPROVAL is a recommendation only; use /api/financial/authorize-spend separately for actual spend-policy authorization and owner approval. It does not sign, route payment, or broadcast. No private keys, seed phrases, or secrets are accepted. Typical latency depends on selected checks/providers; there is no uniform SLA. Recommended workflows: agent-safety-gate, safe-transaction-preflight, tool-discovery-trust.
Agent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| intent | Yes | ||
| target | No | ||
| context | No | ||
| action_type | Yes | ||
| expected_cost | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | ||
| next | No | ||
| risk | Yes | ||
| error | No | ||
| checks | Yes | ||
| intent | Yes | ||
| result | No | ||
| status | No | ||
| payment | No | ||
| reasons | Yes | ||
| success | Yes | ||
| agent_ux | No | ||
| decision | Yes | ||
| retryable | Yes | ||
| checks_run | Yes | ||
| confidence | Yes | ||
| latency_ms | Yes | ||
| action_type | Yes | ||
| skip_reason | Yes | ||
| failed_checks | Yes | ||
| decision_scope | Yes | ||
| estimated_cost | Yes | ||
| next_best_tool | Yes | ||
| skipped_checks | Yes | ||
| evidence_status | Yes | ||
| required_checks | Yes | ||
| approval_handoff | Yes | ||
| attempted_checks | Yes | ||
| completed_checks | Yes | ||
| recommended_action | Yes | ||
| confidence_semantics | Yes | ||
| signing_or_broadcast_performed | Yes |