Generate a JSON Schema from JSON
generate_json_schemaCreate a JSON Schema (draft 2020-12) from a JSON sample. Every item in an array is read, so required, optional and nullable properties are worked out, and strings that are all dates, emails, URLs or UUIDs get a format.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"json": "<json>"
},
"name": "generate_json_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | A JSON sample, such as an API response. | |
| strict | No | Add additionalProperties: false to every object. |