Skip to content
Convertto

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?

It guarantees the arguments the model produces validate against your schema exactly. In exchange, the schema must set additionalProperties: false and list every property as required at every level. An optional field is expressed as a union with null, not by leaving it out of `required` — this tool applies that transformation recursively.

Why does Gemini need different types?

Gemini accepts an OpenAPI 3.0 subset rather than JSON Schema: type names are upper-case ("STRING", "OBJECT") and several keywords, including additionalProperties, are rejected outright. The converter upper-cases and strips them for you.

How to use the llm tool schema converter

  1. 1Enter or paste your tool definition.
  2. 2Choose the from.
  3. 3Choose the to.
  4. 4Turn "Strict mode" on or off as needed.
  5. 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

Last updated

More ai & llm tools