Contract-test a JSON payload in one call
agent402.tools/api/skill/schema-guard
Contract-test a JSON payload in one call: validate it against your schema, infer the schema the payload actually implies, diff the two to expose drift, and return a normalized pretty-print. Schema guard skill pack: one x402 payment runs 4 underlying tools (json-validate, json-schema-infer, json-diff, json-format); partial-success per step.
POST
https://agent402.tools/api/skill/schema-guardUptimeNot checked yet
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://agent402.tools/api/skill/schema-guard", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"schema":"{\"type\":\"object\",\"required\":[\"id\"]}","payload":"{\"id\":1,\"name\":\"Ada\"}"}),
});
console.log(await res.json());Example input
{
"schema": "{\"type\":\"object\",\"required\":[\"id\"]}",
"payload": "{\"id\":1,\"name\":\"Ada\"}"
}