01What is Function Calling Builder?
Every LLM API that supports tool use wants the same thing underneath: a function name, a description, and a JSON Schema for the arguments. The catch is that each API wraps those three pieces a little differently, and a wrong wrapper fails quietly or throws a vague 400. This builder lets you describe the function once in a form and then prints it in the shape your API expects. There are four output formats. OpenAI Responses puts type "function", name, description and parameters at the top level of the tool, as in OpenAI's function calling guide. OpenAI Chat Completions nests name, description and parameters inside a function object. Anthropic puts the schema under input_schema next to name and description, as its tool use docs describe. Generic prints name, description and parameters with no wrapper, which is handy for your own agent code. Strict mode is on by default, and it changes more than one flag. For both OpenAI formats it adds strict: true and additionalProperties: false, and it lists every parameter under required. OpenAI's structured outputs rules demand that, so the builder makes optional parameters nullable instead. An optional string enum gets null added to its type and to its enum list. For Anthropic, strict mode keeps optional parameters optional and only closes the object. Here's a quick example. Load the Weather API preset with OpenAI Responses selected. The optional unit parameter comes out as type ["string","null"] with enum celsius, fahrenheit and null, and required lists both location and unit. Switch to Anthropic and unit is a plain string again, with only location required. Each parameter row has a name, a type (string, number, integer, boolean, array or object), a description and a Req checkbox. String parameters accept a comma-separated enum list, which gets trimmed and de-duplicated. Arrays take an item type. The warnings box catches the mistakes that cause API rejections. It flags function names outside 1 to 64 letters, digits, underscores or dashes. It skips duplicate parameter names and leaves out unnamed rows, and says so. A few honest limits. Object parameters, and arrays of objects, come out with an empty properties list, so you fill in nested fields by hand. There's no support for nested parameter editing, oneOf, or formats like date-time. And the tool never calls a model. It only writes JSON, and it all runs in your browser.
Developers wiring OpenAI or Anthropic models to their own APIs who need tool definitions in the exact wrapper each API expects. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Function Calling Builder
- Pick a preset (Weather API, Database query or Send email) or type a Function Name and Description.
- Choose the Output Format: OpenAI Responses, OpenAI Chat Completions, Anthropic or Generic.
- Decide whether to keep Strict mode on.
- Click Add for each parameter, then set its name, type, description and Req checkbox. Add enum values for strings or an item type for arrays.
- Fix anything in the warnings box, then click Copy Schema.
03Worked examples
- Input:
get_weather: city (string, required, 'City name'), unit (string, optional, enum c,f) | OpenAI Responses | Strict mode on - Result:
{"type":"function","name":"get_weather","description":"Get weather","parameters":{"type":"object","properties":{"city":{"type":"string","description":"City name"},"unit":{"type":["string","null"],"enum":["c","f",null]}},"required":["city","unit"],"additionalProperties":false},"strict":true} - Shown minified. OpenAI strict mode needs every parameter in required, so the optional unit becomes nullable and null is added to its enum.
- Input:
same function | Anthropic | Strict mode on - Result:
{"name":"get_weather","description":"Get weather","input_schema":{"type":"object","properties":{"city":{"type":"string","description":"City name"},"unit":{"type":"string","enum":["c","f"]}},"required":["city"],"additionalProperties":false},"strict":true} - For Anthropic the schema goes under input_schema, and optional parameters stay optional.
- Input:
same function | OpenAI Chat Completions | Strict mode off - Result:
{"type":"function","function":{"name":"get_weather","description":"Get weather","parameters":{"type":"object","properties":{"city":{"type":"string","description":"City name"},"unit":{"type":"string","enum":["c","f"]}},"required":["city"]}}} - Chat Completions wraps the definition in a function object.
- Input:
name 'get weather!', params: tags (array of string, required), tags (string), (unnamed) | Generic - Result:
{"name":"get weather!","description":"x","parameters":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string"}}},"required":["tags"]}} Warnings: Function names must be 1-64 characters of letters, digits, underscores or dashes. / Duplicate name "tags" was skipped; property names must be unique. / 1 field(s) without a name were left out. - Input:
Database query preset (query required; category enum, max_results integer, in_stock boolean optional) | OpenAI Responses | Strict mode on - Result:
"required":["query","category","max_results","in_stock"] "max_results":{"type":["integer","null"],"description":"Maximum number of results to return"} "in_stock":{"type":["boolean","null"],"description":"Only return items in stock"} - Trimmed to the parts strict mode changes. Every optional parameter becomes nullable and moves into required.
- Input:
create_ticket: customer (object, required), labels (array of object) | Anthropic | Strict mode on - Result:
"customer":{"type":"object","description":"Customer","properties":{},"required":[],"additionalProperties":false} Warnings: "customer" is an object with no properties yet; add its properties by hand. / "labels" is an array of objects with no properties yet; add the item properties by hand. - Trimmed to the customer property and the warnings. Nested fields are left for you to fill in.
04Common use cases
- Defining a get_weather or search_orders tool for a chatbot built on the OpenAI or Anthropic API
- Moving tool definitions from Chat Completions to the Responses API without rewriting the wrapper by hand
- Porting a tool list from OpenAI to Anthropic when you switch models and the 400 errors start
- Checking what strict mode does to your optional parameters before you turn it on in production
- Sketching the parameters an agent needs before writing the backend function it will call
- Turning free-text arguments into enum parameters so the model picks from known categories
05Tips
- Models decide when to call a tool mostly from the descriptions. Say what the function does and when not to use it.
- With OpenAI strict mode, an optional parameter arrives as null rather than missing. Handle null in your backend code.
- Object parameters come out with empty properties. Add the nested fields by hand before relying on them.
- Keep tool names in snake_case with no spaces. The builder warns on anything outside letters, digits, underscores and dashes.
- Validate arguments on the server anyway. A schema guides the model but your code still owns the checks.
06Related concepts
Function calling, Tool use, JSON Schema, LLM agents, Structured outputs.
Frequently Asked Questions
What is Function Calling Builder?
Function Calling Builder is a free, browser-based developer tool on AIDToolStack. Build function/tool call schemas for LLMs It requires no installation or sign-up and works entirely in your browser.
Is Function Calling Builder free to use?
Yes. No sign-up, no fees and no usage cap.
Does Function Calling Builder store my data?
No. It runs in your browser; nothing is uploaded.