# WritersLogic Schema Compatibility Checker

> WritersLogic Schema Compatibility Checker is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Compares two JSON Schema 2020-12 or OpenAPI 3.x documents and reports each change, its breaking status, and direction (narrowing vs widening) for client or server roles

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/schema-compat?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-schema-compatibility-checker-c5ba4eaf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pfg5PkUHOx7S_3FpJEQYc

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 writerslogic-schema-compatibility-checker-c5ba4eaf -d '<json body>'
```

Example prompt: Can you compare these two OpenAPI specs and tell me which changes would break existing clients — the old one is my v1 spec and the new one has a newly required 'customerId' field and a removed enum value on 'status'?

## When to prefer this

Use this endpoint when you need a deterministic, structured audit of schema compatibility between two versions of a JSON Schema or OpenAPI document — especially when you need to know exactly which changes are breaking for clients (request role) or servers (response role), or when you need to validate that previously working tool-call argument sets still pass validation. Prefer this over manual diffing or generic JSON diff tools when breaking-change semantics (narrowing vs widening, enum removal, required field addition) matter for API governance or agent reliability.

## Known failure modes

- Malformed or invalid JSON Schema/OpenAPI input returns a parse or validation error
- More than 50 cached calls supplied exceeds the maxItems limit
- Local $ref references that cannot be resolved within the document cause comparison failures
- Changes involving pattern, not, if/then, or complex oneOf are reported as 'uncomparable' with status 'unsupported' rather than a definitive breaking verdict
- Unsupported schema versions (not JSON Schema 2020-12 or OpenAPI 3.0/3.1) may produce incorrect or empty results

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

A structured list of changes between the two schemas, each with its JSON path, the keyword that changed, old and new values, whether the change narrows or widens accepted data, and whether it is breaking for the specified role (request or response). Cached tool-call arguments are individually validated and reported as passing or failing with the specific failing JSON pointer. Changes that cannot be definitively classified (pattern rewrites, not/if/then, mixed oneOf) are marked as 'unsupported' rather than breaking or passing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "kind": {
   "enum": [
    "json-schema",
    "openapi"
   ],
   "type": "string"
  },
  "role": {
   "enum": [
    "request",
    "response"
   ],
   "type": "string",
   "description": "json-schema only: request (default) or response; OpenAPI compares each side in its own role."
  },
  "after": {
   "description": "The new schema, or new OpenAPI document. Full JSON Schema 2020-12 (local $ref only)."
  },
  "calls": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "arguments"
    ],
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 80
     },
     "arguments": {
      "description": "Cached call arguments (JSON schema: validated against the root; OpenAPI: against the operation's JSON request body)."
     },
     "operation": {
      "type": "object",
      "required": [
       "path",
       "method"
      ],
      "properties": {
       "path": {
        "type": "string",
        "maxLength": 500
       },
       "method": {
        "enum": [
         "get",
         "put",
         "post",
         "delete",
         "options",
         "head",
         "patch",
         "trace"
        ],
        "type": "string"
       }
      },
      "additionalProperties": false
     }
    },
    "additionalProperties": false
   },
   "maxItems": 50
  },
  "before": {
   "description": "The old schema, or old OpenAPI document. Full JSON Schema 2020-12 (local $ref only)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-schema-compatibility-checker-c5ba4eaf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
