# 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/llm-json-schema-healer?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-71a31a71
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_T3ML4vShjqSVfmEexLJ_y

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-71a31a71
```

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

## When to prefer this

Choose this endpoint when your multi-agent or LLM pipeline receives JSON that fails standard parsing due to common LLM output artifacts like trailing commas, markdown code fences, single quotes, or minor truncation. It is ideal for deterministic, lightweight JSON healing in real-time pipelines where reliability matters more than complex schema enforcement. Prefer this over custom regex heuristics or retrying the LLM when you need consistent, fast, pay-per-call JSON normalization.

## Known failure modes

- Input JSON is so severely malformed that deterministic repair cannot produce a valid result — returns error or best-effort output
- Empty or whitespace-only raw_json input may return a validation error
- Extremely long or deeply nested JSON strings may hit query-parameter length limits since this is a GET endpoint
- JSON that mixes conflicting syntax errors may produce ambiguous repair outcomes

## 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/llm-json-schema-healer)

## Output

A JSON object containing the repaired, valid JSON derived from the malformed input — with trailing commas removed, markdown fences stripped, single quotes normalized to double quotes, and any truncation healed — ready for downstream parsing without errors

## 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-71a31a71/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)
