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.
POST
https://toolschema-forge.toolschemaforge.workers.dev/v1/tool-schema/lintUptimeNot 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
- toolschema-forge.toolschemaforge.workers.dev/v1/cookbookBuys the Tool-Schema Cookbook & Template Pack by Rowan Vale (ToolSchema Forge): a 24-page PDF guide to LLM tool schemas across OpenAI (incl. strict), Anthropic, Gemini and MCP, 23 ready-made tool templates in 6 formats, bundles, a lint report and a starter MCP server. On payment returns a new paid order with private download URLs for the PDF and the ZIP. Send an empty JSON object.7.00
- toolschema-forge.toolschemaforge.workers.dev/v1/mcp/manifestBuilds a complete Model Context Protocol (MCP) server manifest from an OpenAPI 3.x/Swagger 2.0 JSON spec or from a list of LLM tool definitions: MCP tools with input schemas, titles and behavior annotations, server info, capabilities block, HTTP bindings for each operation, and ready-to-run TypeScript stdio server code using the official MCP SDK. Deterministic, no LLM.0.15
- toolschema-forge.toolschemaforge.workers.dev/v1/openapi/to-toolsConverts an OpenAPI 3.0/3.1 or Swagger 2.0 JSON spec into one LLM tool definition per operation, in OpenAI, OpenAI strict, Anthropic, Gemini, MCP or JSON Schema format. Path, query and header parameters become properties; the JSON request body becomes a 'body' property; local $refs are inlined. Optional filter by operationId or 'METHOD /path'. Deterministic, no LLM.0.02
- toolschema-forge.toolschemaforge.workers.dev/v1/tool-schema/batch-convertBatch version of tool-schema conversion: send up to 50 tool/function definitions in mixed formats (OpenAI, Anthropic, Gemini, MCP, JSON Schema; auto-detected) and get each converted to every target format, with per-tool change reports. One bad tool does not fail the batch. Also reports duplicate tool names, which provider APIs reject. Deterministic, no LLM.0.05
- toolschema-forge.toolschemaforge.workers.dev/v1/tool-schema/convertConverts 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. Returns0.01
