Csp Evaluate
csp_evaluateEvaluate a Content-Security-Policy string the way CSP Evaluator does, before you ship it: parses directives, catches typos, unquoted keywords and deprecated directives, then checks script execution (unsafe-inline without nonce/hash, unsafe-eval, wildcards, http:/https:/data: sources, 40+ known allowlist-bypass hosts with JSONP / AngularJS / user content), object-src, base-uri, frame-ancestors, form-action, reporting and Trusted Types. Returns findings with severity and fixes, a 0-100 score and A-F grade, and a strict nonce-based policy template. Price: $0.002 USDC per successful call (x402, Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/csp-evaluate
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": {
"policy": "<policy>"
},
"name": "csp_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | Policy is delivered in a <meta> tag (frame-ancestors, report-uri and sandbox are then ignored by browsers) | |
| policy | Yes | The policy value (without the header name) | |
| reportOnly | No | Policy is sent as Content-Security-Policy-Report-Only |