# 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.

**URL:** https://convertto.tech/t/tool-schema-converter
**Category:** AI & LLM Tools (https://convertto.tech/c/ai-tools)
**Privacy:** Runs entirely in the browser; no upload
**Cost:** Free, no sign-up
**Last updated:** 2026-08-01

## Key facts

- **Privacy:** Runs entirely in your browser — nothing is uploaded
- **Cost:** Free, unlimited, no sign-up

## How to use

1. Enter or paste your tool definition.
2. Choose the from.
3. Choose the to.
4. Turn "Strict mode" on or off as needed.
5. Press Run, then download the result when it is ready.

## FAQ

### 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.

## Sources

- [JSON Schema specification](https://json-schema.org/) — JSON Schema
- [Model Context Protocol — tools](https://modelcontextprotocol.io/docs/concepts/tools) — MCP

## Related tools

- [JSON Schema Generator](https://convertto.tech/t/json-schema-generator): Infer a JSON Schema from example data, detecting types, string formats and required keys.
- [Sample JSON Generator](https://convertto.tech/t/sample-json-generator): Turn a JSON Schema into realistic sample documents, respecting types, enums, formats and constraints.
- [JSON to Zod Schema Converter](https://convertto.tech/t/json-to-zod): Convert JSON objects into strongly-typed Zod Schema definitions and data models.
- [Words to Tokens Converter](https://convertto.tech/t/words-to-tokens-converter): Convert between words, characters, pages and tokens using measured ratios for prose, code, JSON and CJK.
- [7Z to ZIP Converter](https://convertto.tech/t/7z-to-zip): Convert 7-Zip (.7z) archives into universal ZIP format.
- [Angle Converter](https://convertto.tech/t/angle-converter): Convert angle between 7 units with the formula, a reverse conversion and a quick-reference table.
- [Area Converter](https://convertto.tech/t/area-converter): Convert area between 10 units with the formula, a reverse conversion and a quick-reference table.
- [Audio Converter](https://convertto.tech/t/audio-converter): Convert audio between MP3, WAV, AAC, OGG and FLAC in your browser.
