Repair bounded near-JSON into valid deterministic JSON and optionally validate a safe J…
Repair bounded near-JSON into valid deterministic JSON and optionally validate a safe JSON Schema subset.
by foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev · discovered, not yet claimed by its owner · updated 2026-10-05
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
Repair bounded near-JSON into valid deterministic JSON and optionally validate a safe JSON Schema subset.
Tags: json · repair · validation · deterministic · bazaar
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-05
{
"text": "{status: 'ok', count: 2,}"
}{
"endpoint": "json-contract-repair",
"protocol": "x402-v2",
"result": {
"input_sha256": "8147e3f39e30dbd5b9b6c4d29a06d543dc7402eda2d1b3d8d00b508b36977546",
"normalized_json": "{\"count\":2,\"status\":\"ok\"}",
"output_sha256": "321dcf1c0f4785b1a8db97d962655d69b487533cc4a8ca81da64795c7ed16dfd",
"repaired": true,
"repairs": [
"quote-object-keys",
"convert-single-quoted-strings",
"remove-trailing-commas"
],
"schema_errors": [],
"schema_valid": true,
"valid": true,
"value": {
"count": 2,
"status": "ok"
}
},
"service": "Foundry PAR-007",
"version": "illustrative"
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/29453.jsonfor the price and payment options. - Pay. Call
GET https://foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev/v1/json/repair. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.005 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base
- Demand
- 3 calls · 1 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.005 | 0x25e8245f07d5e4873987293dad666afbe56a9608 | 60s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x25e8245f07d5e4873987293dad666afbe56a9608",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"amountUsd": 0.005,
"maxTimeoutSeconds": 60
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"endpoint": {
"const": "json-contract-repair",
"type": "string"
},
"protocol": {
"const": "x402-v2",
"type": "string"
},
"result": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"input_sha256": {
"pattern": "^[a-f0-9]{64}$",
"type": "string"
},
"normalized_json": {
"type": "string"
},
"output_sha256": {
"pattern": "^[a-f0-9]{64}$",
"type": "string"
},
"repaired": {
"type": "boolean"
},
"repairs": {
"items": {
"type": "string"
},
"type": "array"
},
"schema_errors": {
"items": {
"type": "string"
},
"type": "array"
},
"schema_valid": {
"type": "boolean"
},
"valid": {
"const": true,
"type": "boolean"
},
"value": {
"description": "Repaired JSON value; any valid JSON type is allowed"
}
},
"required": [
"repaired",
"repairs",
"input_sha256",
"valid",
"value",
"normalized_json",
"schema_valid",
"schema_errors",
"output_sha256"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"error": {
"enum": [
"UNREPAIRABLE_JSON",
"MAX_DEPTH_EXCEEDED"
],
"type": "string"
},
"input_sha256": {
"pattern": "^[a-f0-9]{64}$",
"type": "string"
},
"repaired": {
"type": "boolean"
},
"repairs": {
"items": {
"type": "string"
},
"type": "array"
},
"valid": {
"const": false,
"type": "boolean"
}
},
"required": [
"repaired",
"repairs",
"input_sha256",
"valid",
"error"
],
"type": "object"
}
]
},
"service": {
"type": "string"
},
"version": {
"type": "string"
}
},
"required": [
"endpoint",
"protocol",
"result",
"service",
"version"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"endpoint": "string",
"protocol": "string",
"result": null,
"service": "string",
"version": "string"
},
"type": "string"
}Examples
curl "https://foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev/v1/json/repair"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paidconst res = await fetch("https://foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev/v1/json/repair");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}import httpx
res = httpx.get("https://foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev/v1/json/repair")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev
- Endpoint
- https://foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev/v1/json/repair
- Machine-readable
/resources/29453.json