Json To Zod Schema

Seo REST API MCP

Generate a Zod validation schema (TypeScript source) from a JSON sample. Detects email, URL, UUID, and ISO date strings, marks integers with .int(), and emits the z.infer type.

This page documents the HTTP endpoint POST /api/tools/json-to-zod-schema/execute. See the MCP reference →

Call it over REST

POST https://api.findutils.com/api/tools/json-to-zod-schema/execute · no API keys · 60 requests/min per IP

Execute — verified arguments

curl -X POST https://api.findutils.com/api/tools/json-to-zod-schema/execute \
  -H "Content-Type: application/json" \
  -d '{
    "json": "{\"id\":1,\"email\":\"[email protected]\"}"
  }'

Parameter schema for this endpoint

curl https://api.findutils.com/api/tools/json-to-zod-schema

Interactive docs · OpenAPI 3.1 spec · All REST tools

Input schema

Argument Type Required Description
json string yes JSON sample to convert.
add_comments boolean no Append a short comment after detected formats (e.g. "// email format"). Default: true. Default: true.
use_optional boolean no Append .optional() to every object property. Default: false. Default: false.
export_type string (const | named | default) no How the schema is exported: "const" (no export), "named" (export const), or "default" (export default). Default: "const". Default: "const".

Example arguments (verified)

{
  "json": {
    "id": 1,
    "email": "[email protected]"
  }
}

Arguments that carry JSON as a string are shown decoded for readability. The Copy button copies the exact wire arguments.

Also an MCP tool

Claude, Cursor, and any MCP client can call this tool as findutils:json_to_zod_schema after one connect command.

Connect once

claude mcp add findutils --transport http https://mcp.findutils.com/
Open the MCP reference for Json To Zod Schema →

More Seo tools