Convert tool and function calling definitions between OpenAI, Anthropic, Gemini, MCP, Vercel AI SDK, TypeScript, and Pydantic.
Free online Multi-LLM Tool & Function Calling Schema Converter. Convert function and tool definitions across OpenAI Function Calling, Anthropic Claude Tool Use, Google Gemini Function Declarations, Model Context Protocol (MCP), Vercel AI SDK (Zod), TypeScript interfaces, and Python Pydantic models. Features auto-format detection, schema repair, strict mode controls, and multi-tab instant code generation. Runs 100% client-side in your browser — your schemas stay private.
Keywords: llm tool converter, openai function calling, anthropic tool schema, gemini function declaration, mcp schema converter, vercel ai sdk tool, function calling converter, openai to claude tool, mcp to openai, pydantic tool args, typescript tool args
Tags: llm, openai, anthropic, gemini, mcp, vercel-ai, typescript, pydantic, converter, ai
LLM Tool & Function Schema Converter is also known as: LLM Function Calling Converter, OpenAI to Anthropic Tool Converter, AI Tool Schema Converter.
Paste or upload your tool definition, function schema, or JSON Schema into the left editor (supports OpenAI, Anthropic, Gemini, MCP, and raw JSON Schema formats).
The engine automatically detects the source format and displays an auto-detection badge (e.g. OpenAI Function, Anthropic Tool, or MCP). You can also manually specify the input format using the dropdown.
Toggle Strict Mode on or off to control whether additionalProperties: false is enforced and all object properties are mandated in the required array.
Select your target format tab on the right: OpenAI Function, Anthropic Claude Tool, Google Gemini, Model Context Protocol (MCP), Vercel AI SDK (Zod), TypeScript Interface, or Python Pydantic Model.
Review the generated code or JSON definition with full syntax highlighting, structural property counts, and nesting depth statistics.
Click Copy (⌘⇧C), Download, or Share to export your converted tool definition directly into your codebase, prompt template, or agent workflow.
6-Way Multi-LLM Bidirectional Conversion: Convert function and tool definitions seamlessly across OpenAI, Anthropic Claude, Google Gemini, Model Context Protocol (MCP), Vercel AI SDK, TypeScript, and Pydantic.
Intelligent Format Auto-Detection: Automatically identifies schema dialect from unique structural signatures (such as input_schema for Claude, inputSchema for MCP, or function_declarations for Gemini).
OpenAI Structured Outputs & Strict Mode: Full support for OpenAI { type: "function", function: { ... }, strict: true } format with additionalProperties: false and exhaustive required array population.
Anthropic Claude Tool Standard: Generates standard Anthropic { name, description, input_schema } definitions compatible with Claude 3.5 Sonnet, Claude 3 Opus, and Claude 3.7 models.
Google Gemini Function Declarations: Formats schemas into Gemini function_declarations with uppercase OBJECT parameters and required argument constraints for Gemini 1.5 and 2.0 Flash/Pro.
Model Context Protocol (MCP 2024-11) Compliance: Emits camelCase inputSchema structures adhering to Anthropic open-source MCP tool specification for Claude Desktop and Cursor.
Vercel AI SDK (Zod) Code Generation: Converts JSON Schemas into executable TypeScript tool({ parameters: z.object({ ... }) }) code blocks with rich type validation, descriptions, and default values.
TypeScript Interface Output: Generates strongly-typed export interface ToolArgs { ... } declarations with nested object types, string literal unions, array types, and JSDoc comment blocks.
Python Pydantic (v2) BaseModel Emitter: Creates production-ready class ToolArgs(BaseModel) Python code utilizing Field(..., description="...") and Optional[List[...]] type annotations.
Schema Normalization & Automatic Repair: Adds missing root type: "object" declarations, purges nonexistent keys from the required array, and sanitizes identifiers with non-standard characters.
Nested Object & Array Traversal: Recursively processes deeply nested schemas, array items, enum string lists, default values, and nullable union types up to 10 levels deep.
Real-Time Live Debounced Conversion: Converts schemas instantly as you type with zero lag, displaying property counts, required argument tallies, and max nesting depth.
Comprehensive REST API Endpoint: Programmatically convert schemas in CI/CD pipelines via GET and POST requests at /api/tools/llm-tool-converter.
Air-Gapped 100% Client-Side Privacy: All parsing and code generation executes strictly in your browser. Proprietary tool contracts, database schemas, and private APIs never touch a remote server.
The LLM Tool & Function Schema Converter supports 7 syntax formats and dialects for accurate parsing and processing.
Compare per-token rates, prompt caching discounts, and context windows across leading LLMs (GPT-4o, Claude 3.5 Sonnet, Gemini 2.5 Flash, DeepSeek, and more) in our verified catalog.