Pre-flight x402 security audit
x402_endpoint_audit[$0.002] Pre-flight x402 endpoint security firewall. Probes any x402 URL before payment to detect wallet-drain price spikes, SIWx origin spoofing, fake USDC contracts, and prompt injections. Do not use for EVM calldata/Permit2 vetting (use workflow_tx_guardian) or token bytecode scans (use token_contract_audit). method sets the HTTP probe verb (GET vs POST) used to trigger the 402 header, deep_audit=true runs prompt-injection checks, and max_acceptable_usd caps price validation. Live HTTP probe, read-only; requires x402 USDC or Stripe MPP (10 free lifetime calls via /api/free/*) at 30-60 req/min.
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": "x402_endpoint_audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Target x402 endpoint URL to inspect (https only) | |
| method | No | HTTP method for the unpaid probe | POST |
| deep_audit | No | Add one local-LLM prompt-injection audit of the 402 metadata | |
| session_token | No | Optional prepaid session token (x402s_...) from https://apix402data.com/pay after the 10-call free preview. | |
| max_acceptable_usd | No | Your maximum acceptable price in USD |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| probe | No | ||
| cached | No | ||
| checks | No | ||
| pay_to | No | ||
| network | No | ||
| endpoint | No | ||
| warnings | No | ||
| final_url | No | ||
| deep_audit | No | ||
| risk_level | No | ||
| risk_score | No | ||
| target_url | No | ||
| safe_to_pay | No | ||
| x402_version | No | ||
| schema_version | No | ||
| payment_options | No | ||
| quoted_price_usd | No | ||
| max_acceptable_usd | No | ||
| stripe_mpp_offered | No |