Quick start
-
Set metadata
Use snake_case names; describe what the function does.
-
Define fields
Per line: name,type,description,required.
Set function name, description, and parameter fields to generate OpenAI tools JSON for function calling with fewer schema mistakes.
Read the full guide: JSON Schema API Design Guide: From Sample Generation to LLM Validation →
Privacy: processed locally, never uploaded.
↓ Paste in the input area below to see results instantly
Set function name, description, and parameter fields to build an OpenAI function-calling JSON schema.
One per line: name,type,description,required (true/false)
type supports string, number, integer, boolean, array, object. Output matches OpenAI tools format for API requests.
Set function name, description, and parameter fields to generate OpenAI tools JSON for function calling with fewer schema mistakes.
Set metadata
Use snake_case names; describe what the function does.
Define fields
Per line: name,type,description,required.
string, number, integer, boolean, array, object; required true marks mandatory params.
Start by entering the function name and description. The name should be concise, while the description clearly explains its purpose. Then add parameters one by one, including name, type, description, and whether it's required. The tool provides real-time JSON preview for OpenAI compliance checking.
After building, copy the generated JSON directly to your project. We recommend testing the function calls in OpenAI Playground first. Need adjustments? Just modify fields in the tool to regenerate - far safer than manual JSON editing.
Input
get_weather + city field
Output
OpenAI tools JSON
Flat params only; edit output JSON for nesting.
Yes. While optimized for OpenAI, the JSON follows general function definition standards. Note that other platforms may have specific requirements for parameter types or structure - always cross-check with their documentation.