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

API health check

Is this API endpoint healthy? Liveness check, response headers, and TLS certificate status in one pass.

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

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

An agent needs to verify an API is up and properly configured before making production calls: is it reachable (status + latency), what do the response headers say (rate limits, auth requirements, CORS), and is the TLS cert valid and not expiring soon?

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 http-check to verify the endpoint is reachable - status code, response time, redirect chain.
  2. Call http-headers to inspect the response headers - rate limit headers, auth requirements, CORS policy, cache directives.
  3. Call tls-cert with the host extracted from the URL to check certificate validity, issuer, expiry, and chain trust.

Call it directly

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

npx agent402-client call api-health {"url":"https://api.github.com"}

Run it in Claude

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

Then paste this prompt into Claude:

Check the health of https://api.github.com using Agent402's api-health skill pack: (1) http-check for liveness and latency, (2) http-headers for rate limits and security headers, (3) tls-cert for certificate status. Report whether the endpoint is production-ready.

← All skill packs