Skip to content
Fourohtwo

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

Converts one LLM tool/function definition (OpenAI, Anthropic, Gemini, MCP or plain JSON Schema; format auto-detected) into one or more target provider formats. Applies each provider's schema rules: OpenAI strict mode (all fields required, optional fields made nullable, additionalProperties false), Gemini's OpenAPI subset (no $ref, nullable, string enums), $ref inlining and name sanitising. Returns

BaseAnswering
POSThttps://toolschema-forge.toolschemaforge.workers.dev/v1/tool-schema/convert

Uptime100% of 1 check 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://toolschema-forge.toolschemaforge.workers.dev/v1/tool-schema/convert", {
  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"]}),
});
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"
  ]
}

More from ToolSchema ForgeProvider status