agentdiet-structured-output
agentdiet-structured-output: Deterministic A2A Broken-JSON Repair & Schema Validator (/v1/json-repair) — Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes) so multi-agent pipelines never crash.
The wallet the 402 directs payment to. Its whole payment record — every payer, every chain — is on the merchant page.
Asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
The payTo wallet does not resolve to a registered ERC-8004 agent. That is not a verdict on the service — most of the catalog is unregistered.
Live 402 challenge
Captured by the enrichment pass, not read just now. Prices can change — always read the 402 the endpoint answers with.
{
"error": "payment_required",
"accepts": [
{
"asset": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"extra": {
"name": "USD Coin",
"version": "2"
},
"payTo": "0xec5275d5b03bc390fca63d902d0b2d0db2eb5573",
"amount": "2000",
"scheme": "exact",
"network": "eip155:8453",
"mimeType": "application/json",
"resource": "https://agentdiet.dev/v1/structured-output",
"description": "Deterministic A2A Broken-JSON Repair & Schema Validator (/v1/structured-output) — Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes) so multi-agent pipelines never crash.",
"outputSchema": {
"input": {
"type": "http",
"method": "GET",
"queryParams": {
"raw_json": "{\"status\": \"ok\", 'items': [1, 2, 3,],}"
}
},
"output": {
"type": "object",
"required": [
"status",
"roi_proof",
"data"
],
"properties": {
"data": {
"type": "object"
},
"status": {
"type": "string"
},
"roi_proof": {
"type": "object"
}
}
}
},
"maxAmountRequired": "2000",
"maxTimeoutSeconds": 300
}
],
"message": "HTTP 402 Payment Required ($0.0020 USDC). Send exact USDC on Base Mainnet (eip155:8453) to 0xec5275d5b03bc390fca63d902d0b2d0db2eb5573 and pass tx_hash in X-Payment-Proof (or top up a Zero-Gas Session Pass at POST /v1/billing/topup).",
"resource": {
"url": "https://agentdiet.dev/v1/structured-output",
"mimeType": "application/json",
"description": "Deterministic A2A Broken-JSON Repair & Schema Validator (/v1/structured-output) — Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes) so multi-agent pipelines never crash."
},
"protocols": {
"mpp": {
"challenges": [
{
"id": "mpp_c70e72ef47b14554",
"amount": "0.0020",
"intent": "session",
"method": "stripe",
"expires": "2026-10-20T12:00:41Z",
"currency": "usd",
"checkoutUrl": "https://x402-broker-72343955726.us-central1.run.app/v1/billing/stripe-checkout?amount_usd=2&agent_id=agent_3d9078f69dd9",
"description": "Deterministic A2A Broken-JSON Repair & Schema Validator (/v1/structured-output) — Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes) so multi-agent pipelines never crash."
},
{
"id": "mpp_x402_eb6bad4c15ff4a02",
"asset": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"payTo": "0xec5275d5b03bc390fca63d902d0b2d0db2eb5573",
"amount": "2000",
"intent": "charge",
"method": "x402",
"expires": "2026-10-20T12:00:41Z",
"network": "eip155:8453",
"description": "Deterministic A2A Broken-JSON Repair & Schema Validator (/v1/structured-output) — Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes) so multi-agent pipelines never crash."
}
],
"httpStatus": 402
},
"l402": {
"invoice": "lnbc200n1p_agentdiet_ph_6d1120cdce7161f2f08cdf13cb06a924",
"macaroon": "eyJ2IjoxLCJjaWQiOiJjNzBlNzJlZjQ3YjE0NTU0OGZhMWQwNDRkYmI5YTUyYSIsImFnZW50X2lkIjoiYWdlbnRfM2Q5MDc4ZjY5ZGQ5IiwicGF5bWVudF9oYXNoIjoiNmQxMTIwY2RjZTcxNjFmMmYwOGNkZjEzY2IwNmE5MjQ0MDQxYzU5M2U1ZjRjMDIyYTlhMzk5NDkwNjZjZjc1NyIsImFtb3VudF91c2QiOjAuMDAyLCJyZXNvdXJjZSI6Ii92MS9qc29uLXJlcGFpciIsImV4cCI6MTc5MjQ5NzY0MX0.40ee79f9e7e144664f1590d3d0ef9018f93cb129e23564dd4e0dbb21d7122971",
"challenge_id": "c70e72ef47b145548fa1d044dbb9a52a",
"payment_hash": "6d1120cdce7161f2f08cdf13cb06a9244041c593e5f4c022a9a39949066cf757"
},
"x402": {
"asset": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"extra": {
"name": "USD Coin",
"version": "2"
},
"nonce": "eb6bad4c15ff4a02be85e549325bc7f2",
"payTo": "0xec5275d5b03bc390fca63d902d0b2d0db2eb5573",
"amount": "2000",
"scheme": "exact",
"agentId": "agent_3d9078f69dd9",
"chainId": "eip155:8453",
"network": "eip155:8453",
"mimeType": "application/json",
"resource": "https://agentdiet.dev/v1/structured-output",
"amountUsd": 0.002,
"expiresAt": 1792497641,
"description": "Deterministic A2A Broken-JSON Repair & Schema Validator (/v1/structured-output) — Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes) so multi-agent pipelines never crash.",
"outputSchema": {
"input": {
"type": "http",
"method": "POST",
"bodyType": "json",
"bodyFields": {
"raw_json": {
"type": "string",
"required": true,
"description": "Malformed, truncated, or markdown-wrapped JSON string to deterministically repair"
}
}
},
"output": {
"type": "object",
"required": [
"status",
"roi_proof",
"data"
],
"properties": {
"data": {
"type": "object"
},
"status": {
"type": "string"
},
"roi_proof": {
"type": "object"
}
}
}
},
"usdcContract": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"maxAmountRequired": "2000",
"maxTimeoutSeconds": 300,
"challengeSignature": "16b7a79c240045a167417adbc76940a6870e008e6660bf9882dd321dcd634597"
},
"prepaid_topup": {
"topup_endpoint": "/v1/billing/topup",
"base_usdc_wallet": "0xec5275d5b03bc390fca63d902d0b2d0db2eb5573",
"solana_usdc_wallet": "Dq7fuKy4tGsKeQcDh4oVFjTTkbmfQpS1LTrnFxqd339L",
"stripe_payment_link": "https://x402-broker-72343955726.us-central1.run.app/v1/billing/stripe-checkout?amount_usd=10",
"stripe_checkout_links": {
"nano_2_usd": "https://agentdiet.dev/v1/billing/stripe-checkout?amount_usd=2",
"pro_10_usd_plus_10pct": "https://agentdiet.dev/v1/billing/stripe-checkout?amount_usd=10",
"fund_50_usd_plus_25pct": "https://agentdiet.dev/v1/billing/stripe-checkout?amount_usd=50"
}
}
},
"extensions": {
"bazaar": {
"info": {
"input": {
"type": "http",
"method": "GET",
"queryParams": {
"raw_json": "{\"status\": \"ok\", 'items': [1, 2, 3,],}"
}
},
"output": {
"type": "json",
"example": {
"data": {},
"status": "ok",
"roi_proof": {
"compression_ratio_pct": 91.4
}
}
}
},
"schema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"type": "object",
"required": [
"raw_json"
],
"properties": {
"raw_json": {
"type": "string",
"minLength": 1,
"description": "Malformed, truncated, or markdown-wrapped JSON string to deterministically repair"
}
},
"additionalProperties": false
},
"output": {
"type": "object",
"required": [
"status",
"roi_proof",
"data"
],
"properties": {
"data": {
"type": "object"
},
"status": {
"type": "string"
},
"roi_proof": {
"type": "object"
}
}
}
}
}
},
"outputSchema": {
"type": "object",
"required": [
"status",
"roi_proof",
"data"
],
"properties": {
"data": {
"type": "object"
},
"status": {
"type": "string"
},
"roi_proof": {
"type": "object"
}
}
}
},
"environment": "production",
"status_code": 402,
"x402Version": 2,
"agent_wallet": {
"agent_id": "agent_3d9078f69dd9",
"api_token": "agd_2d5b1504feb9cddb441dd0dbee11",
"balance_usd": 0,
"free_calls_used": 0,
"free_calls_limit": 5
},
"required_usd": 0.002,
"ai_assistant_display_instruction": "Tell the user: Free quota reached for 'agent_3d9078f69dd9' ($0.0020 USD). Get a $2 Zero-Gas Session Pass at https://x402-broker-72343955726.us-central1.run.app/v1/billing/stripe-checkout?amount_usd=2 or send Base USDC to 0xec5275d5b03bc390fca63d902d0b2d0db2eb5573."
}Accepts
The payment requirements as published to the catalog. Read the live 402 before paying — a price here is a claim, not a quote.
Pay 0 USDC on Base to 0xEC52…b5573. The signed payment is good for 2 minutes.
- Paid to
- 0xEC52…b5573
- USD Coin contract
- 0x8335…02913
- Payment window
- 2 minutes
- As published
- 0 smallest units
The catalog’s raw entry
[
{
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2"
},
"payTo": "0xEC5275D5b03bc390FcA63D902d0B2D0Db2eb5573",
"amount": "0",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 120
}
]Extensions
{
"bazaar": {
"info": {
"input": {
"type": "http",
"method": "GET",
"queryParams": {
"raw_json": "{\"status\": \"ok\", 'items': [1, 2, 3,],}"
}
},
"output": {
"type": "json",
"example": {
"data": {},
"status": "ok",
"roi_proof": {
"compression_ratio_pct": 91.4
}
}
}
},
"schema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"input"
],
"properties": {
"input": {
"type": "object",
"required": [
"type",
"method"
],
"properties": {
"type": {
"type": "string",
"const": "http"
},
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"type": "object",
"properties": {
"raw_json": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
"output": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string"
},
"example": {
"type": "object"
}
}
}
}
}
}
}Provenance
- Seen in the source catalog
- 2026-10-20 02:09Z
- Last indexed by Roundhouse
- 2026-10-26 21:16Z
- Last enriched (probe, favicon, geo)
- 2026-10-20 11:45Z
- x402 version
- 2
- Max timeout
- 120s
- Liveness probe
- HTTP 402
Hand this page to an agent
Copy the prompt and paste it into Claude, an MCP client or your own agent — it will vet this service and call it over the free read API. No key, no account.
GET api.roundhouseai.io/v0/endpoints
No per-endpoint history for this service yet, so this is payments indexed to its PROVIDER's wallet over 30 days. Verified volume counts only settlements with an on-chain EIP-3009 marker.
Show the promptHide the prompt
Using Roundhouse, look up the x402 service agentdiet-structured-output and tell me whether it is worth paying: what a call costs, whether the endpoint answered when last probed, and what its payment record actually shows. curl -s 'https://api.roundhouseai.io/v0/endpoints?q=agentdiet-structured-output' curl -s 'https://api.roundhouseai.io/v0/merchants/<the payTo wallet returned above>' Then call it: read the price from the live 402 at https://agentdiet.dev/v1/structured-output, never from a cached figure, and pay with an x402 client. The /v0 API needs an API key (`authorization: Bearer rh_live_…`) on everything except /v0/unified* and /v0/endpoints. Either pay over x402 (mint a personal key for $0.01 at GET https://api.roundhouseai.io/v0/test/x402), or ask me for an organization key, which I create at https://roundhouseai.io/dashboard/connections. If you have neither, ask before going further. If you do not have Roundhouse tools or skills installed, read https://roundhouseai.io/skill.md first — it is the whole procedure.