# Deterministic A2A Broken-JSON Repair & Schema Validator

> Deterministic A2A Broken-JSON Repair & Schema Validator is a paid API for AI agents from x402broker.com, paid per call via MPP, $0.002/call, status unknown (last checked 2026-10-21).

Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes) so multi-agent pipelines never crash

## Facts

- Endpoint: GET https://x402broker.com/v1/repair?utm_source=zero.xyz
- Price: $0.002/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Provider: x402broker.com
- Website: https://x402broker.com
- Canonical page: https://www.zero.xyz/c/x402broker-com-deterministic-a2a-broken-json-repair-schema-validator-d1273709
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EuM7lkTmR0JHOt_sVAXpo

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 x402broker-com-deterministic-a2a-broken-json-repair-schema-validator-d1273709
```

Example prompt: This JSON I got from the LLM is broken — it has trailing commas, markdown fences, and single quotes everywhere: ```{'name': 'Alice', 'age': 30,}``` — can you repair it into valid JSON?

## When to prefer this

Choose this endpoint when your multi-agent or LLM pipeline is receiving malformed, truncated, or improperly formatted JSON from language model outputs and needs a deterministic, low-cost fix before passing data downstream. Ideal for agentic workflows where LLM outputs frequently include markdown fences, trailing commas, or single quotes that break standard JSON parsers.

## Known failure modes

- Severely truncated JSON that cannot be meaningfully reconstructed returns an error or best-effort partial result
- Empty or non-JSON input may return a validation error
- JSON that is too deeply nested or malformed beyond heuristic repair may fail
- Network timeout if the service is temporarily unavailable

## How this service works

Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes) so multi-agent pipelines never crash. (Live x402 v2, IETF MPP & MCP endpoint at https://x402broker.com/v1/repair)

## Output

Returns a repaired, syntactically valid JSON object that has been cleaned of markdown fences, trailing commas, single quotes, and other common LLM formatting artifacts, ready for downstream consumption in multi-agent pipelines

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "raw_json"
 ],
 "properties": {
  "raw_json": {
   "type": "string",
   "minLength": 1,
   "description": "Malformed, truncated, or markdown-wrapped JSON string to deterministically repair"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402broker-com-deterministic-a2a-broken-json-repair-schema-validator-d1273709/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402broker.com](https://www.zero.xyz/host/x402broker.com/llms.txt)
