Skip to content
Fourohtwo

Simplify a JSON Schema for language-model tool use

denk.halowerk.com/v1/schema-simplify

Simplify a JSON Schema for language-model tool use: inline local $refs, merge allOf objects, collapse single-branch unions and strip meta keywords. Inlines local $ref targets from $defs/definitions (recursion is reported, not expanded), merges allOf lists of object schemas, collapses anyOf/oneOf with a single branch, removes $schema/$id/$comment/readOnly/writeOnly/deprecated and lists properties t

BaseAnswering
POSThttps://denk.halowerk.com/v1/schema-simplify

Uptime100% of 3 checks in 30 days

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

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://denk.halowerk.com/v1/schema-simplify", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"schema":{"$defs":{"Addr":{"properties":{"city":{"type":"string"}},"type":"object"}},"properties":{"home":{"$ref":"#/$defs/Addr"}},"type":"object"}}),
});
console.log(await res.json());

Example input

{
  "schema": {
    "$defs": {
      "Addr": {
        "properties": {
          "city": {
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "properties": {
      "home": {
        "$ref": "#/$defs/Addr"
      }
    },
    "type": "object"
  }
}