check_compliance
Scan x402 files or directories for hardcoded chain IDs, decimals, decimal scaling, float amounts, and literal token addresses; get file:line severity findings for compliance review.
Instructions
Heuristically scan x402 code (a file or directory) for the high-severity classes: hardcoded chain id, hardcoded decimals, magic-number decimal scaling (10**N, 1eN, *1_000_000), human-decimal/float amounts, and literal asset/token addresses. Returns findings with file:line and severity. Heuristic — a documented default may be a false positive; every finding cites a location for human judgement. No network.
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": {
"path": "<path>"
},
"name": "check_compliance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | A file or directory to scan. | |
| maxFiles | No | Cap on files scanned (default 2000). | |
| maxFindings | No | Cap on findings returned (default 300). |