LLM Tool & Function Schema Generator
Turn an example arguments object into a tool definition.
Tool calling and structured outputs require a JSON Schema describing the arguments a model must produce. Instead of writing it by hand, paste an example of the object you want back and generate a ready-to-use definition in the OpenAI function-calling format or the Anthropic tool-use format.
The schema is generated in strict form: every property is listed as required and additional properties are disallowed, which is what strict structured-output modes expect. Replace the placeholder name and description, since models rely heavily on a clear description to decide when to call a tool.
How to use it
- Paste an example of the arguments object you want the model to produce.
- Choose OpenAI tool or Anthropic tool in the Convert to menu.
- Copy the definition into the tools array of your request and edit the name and description.
Questions
What is the difference between the two formats?
Both wrap the same JSON Schema. OpenAI's function format nests it under function.parameters, while Anthropic's tool format puts it in input_schema next to name and description.
Why are all properties required?
Strict structured-output modes require every property to be listed as required. To make a field optional, allow null as one of its types.
Why does the description matter?
The model chooses whether and how to call a tool mostly from its name and description. Say what the tool does, when to use it and what each argument means.
All tools
- JSON Formatter
- JSON Validator
- JSON Minifier
- JSON Repair
- JSON Diff
- JSON Schema Validator
- JSON to YAML
- YAML to JSON
- JSON to CSV
- CSV to JSON
- JSON to XML
- XML to JSON
- YAML Formatter
- XML Formatter
- JSONL Validator
- JSON to TOON
- LLM Token Counter
- LLM Token Optimizer
- JSON to TypeScript
- JSON Schema Generator
- LLM Tool Schema Generator