Skip to content

Menu

LLM Tool Schema Converter

Convert LLM tool definitions between OpenAI Responses, Chat Completions, Anthropic input_schema, Gemini functionDeclarations and MCP. Runs in your browser.

Runs entirely in your browserAIFree, no sign-up
Loading tool

01What is LLM Tool Schema Converter?

LLM Tool Schema Converter rewrites tool (function) definitions from one API's format into another's. This helps when you move an agent between vendors, or expose the same tools through an MCP server and a direct API call. The schemas are mostly the same, but the wrapping fields differ, and small mistakes cause rejected requests. It reads five shapes. OpenAI's function calling guide puts type: "function", name, description and parameters at the top level for the Responses API. OpenAI Chat Completions nests name, description and parameters inside a function object. Anthropic's tool use docs use name, description and input_schema. Gemini lists tools under functionDeclarations, with the schema in parameters or parametersJsonSchema. The MCP specification gives tools name, title, description, inputSchema, outputSchema and annotations. You can paste a single tool, an array, a request body with a tools array, an MCP tools/list JSON-RPC response or a Gemini tools entry. The format of each tool is detected for you, and a mixed list is reported as mixed. Pick a target and the output updates as you type. The JSON Schema inside each tool is copied unchanged. When the input is Gemini's older Schema form, with upper-case types like STRING and OBJECT and a nullable flag, it is turned into standard JSON Schema with lower-case types. In that case nullable becomes a type list that includes "null". Gemini output always uses parametersJsonSchema, which Gemini documents as taking JSON Schema directly. Gemini output is wrapped in a functionDeclarations object, and a tool with no description gets a warning, since Gemini requires one. Fields with no equivalent are dropped and listed in a warning. Examples are MCP title and annotations when converting to OpenAI, or strict when converting to Gemini or MCP. MCP outputSchema and Gemini responseJsonSchema are mapped onto each other. Anthropic cache_control is kept only for Anthropic output. Names are checked against each target's rules: letters, digits, underscores and dashes up to 64 characters for OpenAI and Anthropic. Gemini allows up to 128 characters, with dots and colons also allowed. A warning also appears when a schema's top-level type is not "object". Here is a worked example. Paste an OpenAI Chat Completions tool named get_weather with strict: true and a parameters object. Choose Gemini as the target. The output is a functionDeclarations list holding name, description and parametersJsonSchema with the same schema. A warning says strict was dropped because Gemini has no equivalent. Limits: the tool does not check whether a schema uses keywords that a particular vendor ignores or rejects. It does not apply strict-mode changes, such as making every property required. Everything runs in your browser.

Developers who build agents or MCP servers and need the same tools to work with more than one model API. The tool runs entirely in your browser, so your data never leaves your device.

02How to use LLM Tool Schema Converter

  1. Paste your tool definitions as JSON, or load one of the examples
  2. Check the Detected line to confirm the source format was read correctly
  3. Choose the target format with the Convert to buttons
  4. Read any warnings about dropped fields or invalid names
  5. Copy the output into your request or server code

03Worked examples

Input: OpenAI Chat Completions tool get_weather (city, unit enum, additionalProperties false, strict true) converted to Anthropic
Result: [{"name":"get_weather","description":"Get the current weather for a city","input_schema":{"type":"object","properties":{"city":{"type":"string","description":"City name"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["city"],"additionalProperties":false},"strict":true}]
The function wrapper is removed and parameters becomes input_schema. Anthropic also accepts strict, so nothing is dropped.
Input: MCP tools/list result with tool search_issues (title, annotations.readOnlyHint) converted to OpenAI Responses
Result: [{"type":"function","name":"search_issues","description":"Search the issue tracker","parameters":{...}}] Warning: search_issues: dropped title, annotations (no equivalent in OpenAI Responses).
The JSON-RPC envelope is unwrapped automatically. Parameters are shortened here; the MCP-only fields are listed in a warning instead of being dropped silently.
Input: Gemini functionDeclarations set_light with type OBJECT, INTEGER and a STRING field marked nullable, converted to MCP
Result: [{"name":"set_light","description":"Set the brightness of a light","inputSchema":{"type":"object","properties":{"brightness":{"type":"integer","description":"0 to 100"},"room":{"type":["string","null"]}},"required":["brightness"]}}]
Upper-case Gemini types are lowered to JSON Schema types. nullable: true becomes a type array that includes null.
Input: Two Anthropic tools, create_ticket (string enum and string array) and close_ticket (integer id), converted to Gemini
Result: {"functionDeclarations":[{"name":"create_ticket",...,"parametersJsonSchema":{...}},{"name":"close_ticket","description":"Close a ticket by id","parametersJsonSchema":{"type":"object","properties":{"id":{"type":"integer"}},"required":["id"]}}]}
Several tools are wrapped in one functionDeclarations list. The first schema is shortened here; it carries over unchanged as parametersJsonSchema.
Input: OpenAI Responses tool lookup_order with strict: true converted to Gemini
Result: {"functionDeclarations":[{"name":"lookup_order","description":"Find an order by number","parametersJsonSchema":{"type":"object","properties":{"order_number":{"type":"string"}},"required":["order_number"],"additionalProperties":false}}]} Warning: lookup_order: dropped strict (no equivalent in Gemini).
Gemini has no strict flag, so the tool loses guaranteed schema adherence. The warning tells you to validate arguments yourself.
Input: {"foo": 1}
Result: Error: Tool 1 is not in a recognised format (no name, input_schema, inputSchema, parameters or function).
Input that matches none of the known shapes is rejected with the reason. Check that you pasted the tool definition and not a tool call.

04Common use cases

  • Moving an agent from OpenAI Chat Completions to the Anthropic Messages API
  • Exposing an existing OpenAI tool list as MCP tools on your own server
  • Feeding an MCP server's tools/list output to a Gemini or OpenAI model
  • Migrating Chat Completions tools to the flatter Responses API shape
  • Turning old Gemini Schema definitions with upper-case types into plain JSON Schema

05Tips

  • Paste a whole request body; the tool finds the tools array inside it
  • Gemini requires a description for every function, so the tool warns when one is missing
  • A name like db.query is valid in Gemini and MCP but not in OpenAI or Anthropic, so rename it before converting
  • Strict mode rules differ between OpenAI and Anthropic, so review strict tools after converting

06Related concepts

Function calling, Tool use, JSON Schema, Model Context Protocol, input_schema, functionDeclarations.

Frequently Asked Questions

What is LLM Tool Schema Converter?

LLM Tool Schema Converter is a free, browser-based developer tool on AIDToolStack. Convert LLM tool definitions between OpenAI Responses, Chat Completions, Anthropic input_schema, Gemini functionDeclarations and MCP. Runs in your browser. It requires no installation or sign-up and works entirely in your browser.

Is LLM Tool Schema Converter free to use?

Yes. No sign-up, no fees and no usage cap.

Does LLM Tool Schema Converter store my data?

No. It runs in your browser; nothing is uploaded.

Related Tools

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe