AI Developer Tools

AI Tool Schema Converter

Convert one user-defined Claude client tool shape to an OpenAI Responses function tool shape, or reverse that structural mapping.

✓ Private · no uploads

AI Tool Schema Converter
View options
Keyboard shortcuts

Ctrl/⌘ + Enter: process

Ctrl/⌘ + Shift + F: full screen

Esc: exit full screen

Ctrl/⌘ + F in editor: search

Only Claude → OpenAI. Optional fields become required and nullable; reverse conversion cannot restore optionality.
Converted tool JSON
Your result will appear here

When it is ready, copy or download the result.

ReadyAutomatic
Lines: 1 · Characters: 0 · Size: 0 B · Time: — · Cursor: 1:1

How to use

  1. Paste one tool definition as JSON and choose the direction.
  2. Run the converter to map input_schema and parameters while preserving the name and description.
  3. For Claude to OpenAI, enable Strict OpenAI schema only when you want optional fields normalized to nullable required fields.
  4. Review the output with the related validator and test the final request against the current API.

Examples

Convert a lookup tool

id stays required and limit stays optional in the default conversion. Strict mode makes limit required while allowing null.

Input
{"name":"lookup","description":"Look up a record","input_schema":{"type":"object","properties":{"id":{"type":"string"},"limit":{"type":"integer","minimum":1}},"required":["id"]}}
Output
{
  "type": "function",
  "name": "lookup",
  "description": "Look up a record",
  "parameters": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string"
      },
      "limit": {
        "type": "integer",
        "minimum": 1
      }
    },
    "required": [
      "id"
    ]
  },
  "strict": false
}

Move a tool definition between providers

Both provider formats describe a named function and its arguments with a JSON Schema object, but the wrapper fields differ. Claude uses input_schema; OpenAI Responses uses type: "function" and parameters. This converter maps the common name, description, and argument schema. It does not translate provider-specific tool settings or make API requests. One tool object is processed at a time.

For a Claude-to-OpenAI conversion, the default output sets strict: false so optional fields retain their original meaning. If you enable strict mode, the converter adds additionalProperties: false to object schemas, lists every property as required, and represents formerly optional values as nullable where it can. Review those changes carefully. A strict OpenAI schema may still be limited by the live API’s supported JSON Schema subset. The reverse direction preserves the OpenAI schema as written; it cannot know whether a required nullable field was intended as optional before normalization.

Use the related validators as an early shape check, then consult the OpenAI function calling guide and Claude tool guide before production use. The definition stays in your browser.

Review nullable fields and omitted metadata

Strict normalization also handles nullable objects, array items and definition maps. Optional enum fields allow null alongside their original values. For constrained or composed fields and references, an additional anyOf branch represents null without discarding the existing branch. References are never fetched or resolved. Provider metadata such as cache_control and input_examples is not copied: save the source and add destination settings explicitly.

Choose the direction first, then load a matching sample if needed. Changing direction keeps the current editor contents; conversion errors show the field path and position. Copy or download produces the complete converted JSON, including when the on-screen preview is shortened. Compare the result with the function’s handling of null rather than assuming a syntactically valid mapping preserves every application behavior.

Frequently asked questions

Does this call either AI provider?

No. The definition is transformed locally in the browser.

What does strict normalization do?

It marks each object property required, disallows additional properties, and adds null to formerly optional property types where possible.

Can conversion preserve every provider feature?

No. Provider-specific metadata and schema limits need manual review.

What happens when converting strict OpenAI back to Claude?

Required nullable fields remain required; the converter cannot infer whether they were originally optional.

Does changing direction load a suitable sample?

Changing direction keeps your current input. Load sample supplies the correct source shape for the selected direction; the strict option is disabled for OpenAI to Claude.

Related tools