Development
Convert JSON Schema JSON/YAML definitions into ready-to-use Zod schemas with nested objects, arrays, enums, and common validation rules
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/json-schema-to-zod-schema-converter' \
-H 'Content-Type: application/json' \
-d '{"schemaInput":"{\n \"type\": \"object\",\n \"required\": [\"email\"],\n \"properties\": {\n \"email\": { \"type\": \"string\", \"format\": \"email\" },\n \"age\": { \"type\": \"integer\", \"minimum\": 18 }\n }\n}","sourceFormat":"json","rootSchemaName":"userSchema","namingStyle":"camel","outputMode":"schema-and-type","includeDescriptions":true}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/json-schema-to-zod-schema-converter| Name | Type | Required | Description |
|---|---|---|---|
| schemaInput | textarea | Yes | — |
| sourceFormat | select | No | — |
| rootSchemaName | text | No | — |
| namingStyle | select | No | — |
| outputMode | select | No | — |
| includeDescriptions |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-json-schema-to-zod-schema-converter": {
"name": "json-schema-to-zod-schema-converter",
"description": "Convert JSON Schema JSON/YAML definitions into ready-to-use Zod schemas with nested objects, arrays, enums, and common validation rules",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=json-schema-to-zod-schema-converter",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "json-schema-to-zod-schema-converter",
"arguments": {
"schemaInput": "{\n \"type\": \"object\",\n \"required\": [\"email\"],\n \"properties\": {\n \"email\": { \"type\": \"string\", \"format\": \"email\" },\n \"age\": { \"type\": \"integer\", \"minimum\": 18 }\n }\n}",
"sourceFormat": "json",
"rootSchemaName": "userSchema",
"namingStyle": "camel",
"outputMode": "schema-and-type",
"includeDescriptions": true
}
}
}| checkbox |
| No |
| — |
Text result
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Questions or issues? Contact [email protected]