x420_security_action-gate
Action preflight gate: Deterministic preflight for an agent action before it runs: prompt-injection scan of the action text, URL public-host check (DNS-resolved, private ranges refused) with an optional host allow-list, JSON payload parse and required-key check, and a spend-cap check (amount_usd against max_usd). Returns allow or block with every rule's result. Source: X420 rules. Not professional, legal, insurance, engineering, medical, financial or tax advice. Price: $0.002 USDC per call (x402 on Base). This hosted tool does NOT pay and does NOT return the deliverable: it validates the input and returns payment instructions (pay_to, network, price and the x402 URL to pay at). GET the url; read PAYMENT-REQUIRED from the 402; retry with PAYMENT-SIGNATURE (x402 v2). Or run the local x420-mcp server with your own wallet key to pay automatically. Deliverable once paid: JSON: verdict allow|block, checks[]{check, pass, detail}, injection.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "x420_security_action-gate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL the action would call (optional) | |
| text | No | the action text or untrusted content to scan (optional) | |
| max_usd | No | spend cap (optional, with amount_usd) | |
| payload | No | JSON payload the action would send (optional) | |
| amount_usd | No | amount the action would spend (optional, with max_usd) | |
| allowed_hosts | No | comma-separated hosts the URL must match (optional) | |
| required_keys | No | comma-separated keys the payload must carry (optional) |