← Back to Catalog

Schema Change Gate

ID: F102 | Version: 0.1.0

Tool: compare_schema_examples

Replay supplied records against old and new bounded JSON Schema draft-07 contracts. Receive exact regression indices, reasons and a request digest. Results cover the supplied corpus only.

Pricing

0.02 per analysis

Requires x402 capable MCP client with wallet for payment settlement.

Input Schema

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "old_schema",
    "new_schema",
    "examples"
  ],
  "properties": {
    "old_schema": {
      "anyOf": [
        {
          "type": "object"
        },
        {
          "type": "boolean"
        }
      ]
    },
    "new_schema": {
      "anyOf": [
        {
          "type": "object"
        },
        {
          "type": "boolean"
        }
      ]
    },
    "examples": {
      "type": "array",
      "minItems": 1,
      "maxItems": 100
    }
  }
}

Example Input

{
  "old_schema": {
    "enum": [
      "open",
      "closed"
    ]
  },
  "new_schema": {
    "enum": [
      "open"
    ]
  },
  "examples": [
    "open",
    "closed"
  ]
}

Example Output

{
  "ok": true,
  "digest": "1a60ec41e214642ff3afd0ad82457a926e19b79218c28a95c6a3631b693e92c8",
  "scope": "supplied_examples_only",
  "disclaimer": "This report reflects validation outcomes only for the examples supplied in this request. It is evidence, not proof, of compatibility: it does not cover values outside the supplied corpus and does not establish universal backward compatibility between old_schema and new_schema.",
  "summary": {
    "total": 2,
    "old_valid": 2,
    "new_valid": 1,
    "both_valid": 1,
    "both_invalid": 0,
    "regressed": 1,
    "newly_accepted": 0
  },
  "regressed": [
    {
      "index": 1,
      "reasons": [
        {
          "keyword": "enum",
          "path": "#/enum"
        }
      ]
    }
  ],
  "newly_accepted": [],
  "both_invalid": []
}

Limitations

Connect via MCP

Add to your MCP client configuration:

{
  "mcpServers": {
    "schema-change-gate": {
      "type": "http",
      "url": "https://mcp-factory.bowling-anthony.workers.dev/schema-change-gate/mcp"
    }
  }
}

Payment

Price: 0.02 USDC per analysis

This tool requires an x402-capable MCP client with wallet support. Tool listing and initialization are free. Actual completed job analysis is paid in USDC on the Base network.

Payment flow:

  1. Client discovers the price, then submits a signed x402 v2 PAYMENT-SIGNATURE authorization with the input
  2. If settlement is pending, retry the identical input and authorization; do not sign another charge.
  3. Results retained for 24 hours for recovery
  4. Maximum output size: 96 KiB