HTTP/1.1 402 PAYMENT REQUIRED · Agentic Finance (AIFI) · x402 + MPP dual-stack 500+ tools · 12 rails · 0% seller fee

OpenAPI spec audit

Lint an OpenAPI spec and validate a sample payload against it - catch schema errors in one pass.

$0.060 per call · one payment for the whole workflow
POST /api/skill/openapi-audit

3 tools run server-side in one request. You pay once, settle once, and get a single response - no orchestration, no per-step payments, and a partial-success envelope if any step fails. USDC over x402 on any supported chain.

When to use this pack

A developer has an OpenAPI spec URL and wants a quick quality check: does it lint cleanly (missing descriptions, unused schemas, invalid refs) and does a sample payload pass validation? Useful before publishing to a marketplace or generating client SDKs.

Tools in this pack

All 3 run inside the single $0.060 call above. Each is also callable on its own if you only need one part.

Workflow

  1. Call openapi-lint with the spec URL to get lint warnings and errors - missing descriptions, unused schemas, invalid references.
  2. Call openapi-validate-payload with an empty payload to surface required-field violations and schema mismatches.
  3. Call openapi-security-summary to map the spec's auth posture - which security schemes are declared, which operations require them, and which are left unprotected. A clean lint on an endpoint that forgot its auth requirement is the audit finding that matters most.

Call it directly

Any x402 client pays the 402 and gets the whole workflow back in one response:

npx agent402-client call openapi-audit {"url":"https://petstore3.swagger.io/api/v3/openapi.json"}

Run it in Claude

claude mcp add agent402 -s user -- npx -y agent402-mcp@latest

Then paste this prompt into Claude:

Audit the OpenAPI spec at https://petstore3.swagger.io/api/v3/openapi.json using Agent402's openapi-audit skill pack: (1) lint it for warnings and errors, (2) validate an empty payload against the first endpoint, (3) summarize the security posture with openapi-security-summary. Report lint issues, validation failures, and any unprotected operations.

← All skill packs