# AgentSpec OpenAPI Inspector

> AgentSpec OpenAPI Inspector is a paid API for AI agents from agentspec-one.vercel.app, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-14).

Inspects an OpenAPI specification and returns an agent-readiness score, risk analysis, recommendations, and x402 Bazaar monetization candidates.

## Facts

- Endpoint: POST https://agentspec-one.vercel.app/inspect/openapi
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentspec-one-vercel-app-0018eed2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8cVp9ZasFeTbuCzQY3e4h

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentspec-one-vercel-app-0018eed2 -d '<json body>'
```

Example prompt: Can you inspect this OpenAPI spec and tell me its agent-readiness score, any risks I should know about, and which endpoints would make good x402 Bazaar candidates?

## When to prefer this

Use this endpoint when you have an OpenAPI specification and want to evaluate how well-suited it is for AI agent consumption — especially if you want to identify x402 monetization opportunities. Prefer this over the MCP inspector when the target is a REST/OpenAPI-defined API rather than an MCP tool manifest.

## Known failure modes

- Invalid or malformed OpenAPI spec returns a parse error
- Missing required spec body returns 400 Bad Request
- Spec too large may exceed processing limits
- Payment not included or insufficient USDC triggers 402 Payment Required
- Unsupported OpenAPI version may yield incomplete analysis

## How this service works

Inspect an OpenAPI spec and return agent-readiness score, risks, recommendations, and x402 Bazaar candidates.

## Output

Returns a structured report including: a numeric agent-readiness score, identified risks (e.g. missing schemas, ambiguous parameters, unsafe operations), actionable recommendations to improve agent compatibility, and a list of endpoint candidates suitable for listing on the x402 Bazaar marketplace.

## Example request

```json
{
 "query": "{\"openapi\": \"3.0.0\", \"info\": {\"title\": \"Test API\", \"version\": \"1.0.0\", \"description\": \"A minimal test API for agent-readiness inspection\"}, \"servers\": [{\"url\": \"https://api.example.com/v1\"}], \"paths\": {\"/items\": {\"get\": {\"summary\": \"Get items\", \"operationId\": \"getItems\", \"responses\": {\"200\": {\"description\": \"Success\", \"content\": {\"application/json\": {\"schema\": {\"type\": \"array\", \"items\": {\"type\": \"object\", \"properties\": {\"id\": {\"type\": \"integer\"}, \"name\": {\"type\": \"string\"}}}}}}}}}}}, \"components\": {\"schemas\": {}}}"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {}
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentspec-one-vercel-app-0018eed2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentspec-one.vercel.app](https://www.zero.xyz/host/agentspec-one.vercel.app/llms.txt)
