Skip to content
Fourohtwo

toolschema-forge.toolschemaforge.workers.dev/v1/tool-schema/lint

Checks one LLM tool/function definition against the schema rules of OpenAI (incl. strict mode), Anthropic, Gemini and MCP without changing it. Returns a compatible true/false flag per provider and every problem with its JSON pointer path, so a tool can be fixed before an API call is rejected. Deterministic, no LLM.

BaseUnchecked
POSThttps://toolschema-forge.toolschemaforge.workers.dev/v1/tool-schema/lint

UptimeNot 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://toolschema-forge.toolschemaforge.workers.dev/v1/tool-schema/lint", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"tool":{"type":"function","function":{"name":"get_weather","parameters":{"type":"object","required":["city"],"properties":{"city":{"type":"string","description":"City name"},"unit":{"enum":["c","f"],"type":"string"}}},"description":"Get the current weather for a city."}},"targets":["openai_strict","gemini","anthropic"]}),
});
console.log(await res.json());

Example input

{
  "tool": {
    "type": "function",
    "function": {
      "name": "get_weather",
      "parameters": {
        "type": "object",
        "required": [
          "city"
        ],
        "properties": {
          "city": {
            "type": "string",
            "description": "City name"
          },
          "unit": {
            "enum": [
              "c",
              "f"
            ],
            "type": "string"
          }
        }
      },
      "description": "Get the current weather for a city."
    }
  },
  "targets": [
    "openai_strict",
    "gemini",
    "anthropic"
  ]
}

More from ToolSchema Forge