JSON Schema Tool Designer
Generate perfect function-calling schemas for OpenAI and Anthropic agents.
Function Definition
Parameters
Generated Schema
{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get the current weather for a specific location.",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "The city and state, e.g. San Francisco, CA"
},
"unit": {
"type": "string",
"description": "The unit of temperature",
"enum": [
"celsius",
"fahrenheit"
]
}
},
"required": [
"location"
]
}
}
}Implementation Tip
Paste this schema into your tools array when initializing the OpenAI or Anthropic SDK. Ensure your function names are concise and descriptions are extremely clear for the model.