81trust / 100
Skill Schema Evolution
by Skill: API contract drift check in Onchain & crypto
x402 APIPassing, checked 5 h ago
The 'did this API contract change in a way that breaks our integration?' workflow. Diff two OpenAPI snapshots structurally, lint the new one for agent-readiness regressions, extract the endpoint surface for inventory comparison, validate a known-good payload against the new contract, and summarize security-relevant changes. Six tools, one go/no-go answer on whether the upstream API broke us.
POST https://agent402.tools/api/skill/schema-evolution
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 256 ms typical, 256 ms slowest 5%
- Last check
- 5 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/skill/schema-evolution" \
-H "content-type: application/json" \
-d '{"newSpec":"{\"openapi\":\"3.0.3\",\"info\":{\"title\":\"Orders API\",\"version\":\"1.1.0\"},\"paths\":{\"/v1/orders\":{\"post\":{\"operationId\":\"createOrder\",\"requestBody\":{\"required\":true,\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"required\":[\"customerId\",\"currency\"],\"properties\":{\"customerId\":{\"type\":\"string\"},\"currency\":{\"type\":\"string\"}}}}}},\"responses\":{\"201\":{\"description\":\"created\"}}}}}}","oldSpec":"{\"openapi\":\"3.0.3\",\"info\":{\"title\":\"Orders API\",\"version\":\"1.0.0\"},\"paths\":{\"/v1/orders\":{\"post\":{\"operationId\":\"createOrder\",\"requestBody\":{\"required\":true,\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"required\":[\"customerId\"],\"properties\":{\"customerId\":{\"type\":\"string\"},\"currency\":{\"type\":\"string\"}}}}}},\"responses\":{\"201\":{\"description\":\"created\"}}}}}}"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fskill%2Fschema-evolution
const res = await pay("https://agent402.tools/api/skill/schema-evolution", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"newSpec":"{\"openapi\":\"3.0.3\",\"info\":{\"title\":\"Orders API\",\"version\":\"1.1.0\"},\"paths\":{\"/v1/orders\":{\"post\":{\"operationId\":\"createOrder\",\"requestBody\":{\"required\":true,\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"required\":[\"customerId\",\"currency\"],\"properties\":{\"customerId\":{\"type\":\"string\"},\"currency\":{\"type\":\"string\"}}}}}},\"responses\":{\"201\":{\"description\":\"created\"}}}}}}","oldSpec":"{\"openapi\":\"3.0.3\",\"info\":{\"title\":\"Orders API\",\"version\":\"1.0.0\"},\"paths\":{\"/v1/orders\":{\"post\":{\"operationId\":\"createOrder\",\"requestBody\":{\"required\":true,\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"required\":[\"customerId\"],\"properties\":{\"customerId\":{\"type\":\"string\"},\"currency\":{\"type\":\"string\"}}}}}},\"responses\":{\"201\":{\"description\":\"created\"}}}}}}"}),
});
console.log(await res.json());Example input
{
"newSpec": "{\"openapi\":\"3.0.3\",\"info\":{\"title\":\"Orders API\",\"version\":\"1.1.0\"},\"paths\":{\"/v1/orders\":{\"post\":{\"operationId\":\"createOrder\",\"requestBody\":{\"required\":true,\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"required\":[\"customerId\",\"currency\"],\"properties\":{\"customerId\":{\"type\":\"string\"},\"currency\":{\"type\":\"string\"}}}}}},\"responses\":{\"201\":{\"description\":\"created\"}}}}}}",
"oldSpec": "{\"openapi\":\"3.0.3\",\"info\":{\"title\":\"Orders API\",\"version\":\"1.0.0\"},\"paths\":{\"/v1/orders\":{\"post\":{\"operationId\":\"createOrder\",\"requestBody\":{\"required\":true,\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"required\":[\"customerId\"],\"properties\":{\"customerId\":{\"type\":\"string\"},\"currency\":{\"type\":\"string\"}}}}}},\"responses\":{\"201\":{\"description\":\"created\"}}}}}}"
}Example output
{
"args": {
"newSpec": "{\"openapi\":\"3.0.3\",\"info\":{\"title\":\"Orders API\",\"version\":\"1.1.0\"},\"paths\":{\"/v1/orders\":{\"post\":{\"operationId\":\"createOrder\",\"requestBody\":{\"required\":true,\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"required\":[\"customerId\",\"currency\"],\"properties\":{\"customerId\":{\"type\":\"string\"},\"currency\":{\"type\":\"string\"}}}}}},\"responses\":{\"201\":{\"description\":\"created\"}}}}}}",
"oldSpec": "{\"openapi\":\"3.0.3\",\"info\":{\"title\":\"Orders API\",\"version\":\"1.0.0\"},\"paths\":{\"/v1/orders\":{\"post\":{\"operationId\":\"createOrder\",\"requestBody\":{\"required\":true,\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"required\":[\"customerId\"],\"properties\":{\"customerId\":{\"type\":\"string\"},\"currency\":{\"type\":\"string\"}}}}}},\"responses\":{\"201\":{\"description\":\"created\"}}}}}}"
},
"pack": "schema-evolution",
"steps": [
{
"ok": true,
"result": {},
"slug": "openapi-diff"
},
{
"ok": true,
"result": {},
"slug": "openapi-lint"
},
{
"ok": true,
"result": {},
"slug": "openapi-extract"
},
{
"ok": true,
"result": {},
"slug": "openapi-required-params"
},
{
"ok": true,
"result": {},
"slug": "openapi-validate-payload"
},
{
"ok": true,
"result": {},
"slug": "openapi-security-summary"
}
],
"summary": "6/6 steps succeeded"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 5 h ago | Passed | 402 | 256 ms | $0.008 |