Convert Tool-Calling Schemas Between Providers
Move a function definition between OpenAI, Anthropic, Gemini, MCP and bare JSON Schema — or emit it as a TypeScript type or Zod schema.
This converter translates a tool definition between the OpenAI chat-completions and responses shapes, Anthropic's Messages API, Gemini function declarations, MCP tool definitions and bare JSON Schema, and can emit the same schema as a TypeScript interface or a Zod schema. It also applies strict mode correctly — recursively adding additionalProperties: false and marking every property required.
Runs in your browser- Privacy
- Runs entirely in your browser — nothing is uploaded
- Cost
- Free, unlimited, no sign-up
Frequently asked questions
What does strict mode actually change?
Why does Gemini need different types?
How to use the llm tool schema converter
- 1Enter or paste your tool definition.
- 2Choose the from.
- 3Choose the to.
- 4Turn "Strict mode" on or off as needed.
- 5Press Run, then download the result when it is ready.
Sources & specifications
Embed this tool
Put the working llm tool schema converter on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.
Share this tool
Related tools
JSON Schema GeneratorInfer a JSON Schema from example data, detecting types, string formats and required keys.Sample JSON GeneratorTurn a JSON Schema into realistic sample documents, respecting types, enums, formats and constraints.JSON to Zod Schema ConverterConvert JSON objects into strongly-typed Zod Schema definitions and data models.Words to Tokens ConverterConvert between words, characters, pages and tokens using measured ratios for prose, code, JSON and CJK.7Z to ZIP ConverterConvert 7-Zip (.7z) archives into universal ZIP format.Angle ConverterConvert angle between 7 units with the formula, a reverse conversion and a quick-reference table.
Last updated
More ai & llm tools