aw1_static_ast_preflight
Deterministic dry-run AST and Gate 7 safety preflight scoring for proposed Python or shell payloads without executing or mutating state. Supports x402 per-call payment ($0.002/call in Base USDC).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"payload": "<payload>"
},
"name": "aw1_static_ast_preflight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | Proposed Python code or shell command to inspect | |
| language | No | Payload language (python or shell) | python |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| safe | Yes | True if payload passes Gate 7 static AST checks | |
| findings | No | Detected AST or shell hazards | |
| risk_score | Yes | Normalized risk score from 0 (clean) to 100 (critical) |