# Deterministic A2A Broken-JSON Repair & Schema Validator

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

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

## Facts

- Endpoint: POST https://email-verify.agentdiet.dev/v1/repair?utm_source=zero.xyz
- Price: $0.002/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Provider: email-verify.agentdiet.dev
- Website: https://email-verify.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-f73be1ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_a-nk_T0o5TuGaE-0b9H2Q

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 email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-f73be1ab -d '<json body>'
```

Example prompt: This JSON string from the LLM has trailing commas and markdown fences and is crashing my pipeline — can you repair it and give me back valid JSON: ```{"name": "Alice", "age": 30,}```

## When to prefer this

Choose this endpoint when you need deterministic, rule-based JSON repair of LLM outputs — especially in multi-agent pipelines where reliability matters and you cannot tolerate crashes from malformed JSON. Prefer this over prompt-based retry loops when you need fast, cheap, idempotent correction of common LLM JSON artifacts like trailing commas, markdown fences, and single quotes.

## Known failure modes

- Input is so severely malformed that deterministic repair is impossible — returns error indicating unrecoverable JSON
- Empty raw_json string — validation error returned immediately
- Input is not JSON at all (e.g. plain prose) — may return error or best-effort empty object
- Network timeout on upstream service
- Payment required (HTTP 402) if x402 payment header is missing or insufficient

## 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://email-verify.agentdiet.dev/v1/repair)

## Output

A JSON object containing the repaired, syntactically valid JSON parsed from the malformed input. The response restores correct structure by fixing trailing commas, removing markdown fences, converting single quotes to double quotes, and closing truncated structures.

## 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/email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-f73be1ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from email-verify.agentdiet.dev](https://www.zero.xyz/host/email-verify.agentdiet.dev/llms.txt)
