Audit a full OpenAPI spec (paid, $5.00)
api_auditPAID over x402 inside this tool call ($5.00 USDC on Base, Polygon or Arc): everything in api_test_spec, plus auth diagnostics, full response-schema validation, and a corrected working request per endpoint. Public endpoints only in v1. Call once without payment to get the x402 PaymentRequired, then call again with the signed payment in _meta["x402/payment"].
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": "api_audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | No | Inline OpenAPI spec JSON (instead of specUrl). | |
| samples | No | Sample values per endpoint, keyed by 'METHOD /path'. | |
| specUrl | No | URL of the OpenAPI spec JSON. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Server base URL used | |
| _paid | No | x402 receipt | |
| total | No | Endpoints probed (capped at 50) | |
| broken | No | Endpoints that are broken | |
| capped | No | Spec had more than 50 endpoints | |
| results | No | Per-endpoint results with corrections: method, path, probed, status, verdict, failure class, schema, corrections | |
| version | No | OpenAPI version | |
| working | No | Endpoints that work | |
| specValid | No | Spec is valid OpenAPI | |
| specErrors | No | Spec validation errors | |
| needsSamples | No | Endpoints needing sample values |