API endpoint health + security audit
api_health_auditAPI health and security audit of one public http(s) endpoint: 3-10 sample requests for uptime, status codes and latency (p50/p95), TLS certificate and expiry, security headers (HSTS, CSP, X-Content-Type-Options, frame options), CORS policy, rate-limit headers, caching, compression and response validity, with a score and prioritized fixes. Only the given URL is probed; optional probe headers are never stored. $9 USDC on Base via x402; invalid input and failed runs are not charged. Most x402 clients cap one payment at $0.10 by default; raise the cap for this tool. Price: $9 per run. First call returns the x402 PaymentRequired (no charge); retry with payment in _meta["x402/payment"].
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": {
"url": "<url>"
},
"name": "api_health_audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public http(s) API endpoint to audit | |
| body | No | Optional POST probe body (string or JSON, max 16 KB) | |
| method | No | ||
| headers | No | Optional probe headers (never stored or echoed) | |
| samples | No | ||
| requestKey | No | Optional idempotency key: same payer + requestKey + input returns the stored result without a second charge (7 days). | |
| x402_payment | No | Optional. Base64 x402 v2 PaymentPayload, for clients that cannot set params._meta["x402/payment"]. Omit on the first call to get the exact price. | |
| expect_status | No |