json_to_schema
Turn a JSON sample (or an array of samples of the same shape) into a JSON Schema draft 2020-12 and a TypeScript type. Infers required vs optional keys across samples, nullable fields, integer vs number, date/email/uri/uuid formats, and small enums. Use it to draft an MCP tool inputSchema from an example payload.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | The JSON text. Free tier: 20,000 chars. | |
| name | No | Type name, default Root |