# 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-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://email-verify.agentdiet.dev/v1/schema-repair?utm_source=zero.xyz
- Price: $0.002/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-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-ba2c982e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lcJUOVf6PMcBnkYjeQVCl

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-ba2c982e
```

Example prompt: This JSON from the LLM is broken — it has trailing commas and markdown fences around it. Can you fix it so it's valid JSON I can actually use? Here it is: ```json {"name": "Alice", "score": 42, } ```

## When to prefer this

Choose this endpoint when an LLM or agent in your pipeline has produced malformed, truncated, or markdown-wrapped JSON that needs deterministic, rule-based repair before downstream processing. Ideal for multi-agent orchestration layers where reliability matters more than heuristic guessing. Prefer over ad-hoc string manipulation when you need consistent handling of trailing commas, single quotes, and markdown fences.

## Known failure modes

- Input JSON is so severely malformed it cannot be deterministically recovered — returns error
- raw_json parameter missing or empty — returns 400 validation error
- JSON contains ambiguous structures that cannot be safely inferred — returns partial repair with warning
- Network or payment (x402) failure — returns 402 or 5xx

## 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/schema-repair)

## Output

A JSON object containing the repaired, syntactically valid version of the input, suitable for programmatic consumption downstream in a multi-agent pipeline.

## 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-ba2c982e/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)
