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 MCP tool findutils:json_to_zod_schema. See the REST reference →

Call it over MCP

Tool name findutils:json_to_zod_schema · no API keys · 120 requests/min per IP

Claude Code

claude mcp add findutils --transport http https://mcp.findutils.com/

Claude Desktop — claude_desktop_config.json

{
  "mcpServers": {
    "findutils": {
      "url": "https://mcp.findutils.com/"
    }
  }
}

Raw JSON-RPC (any MCP client) — verified example

curl -X POST https://mcp.findutils.com/ \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "json_to_zod_schema",
      "arguments": {
        "json": "{\"id\":1,\"email\":\"[email protected]\"}"
      }
    }
  }'

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 a REST endpoint

The same tool answers plain HTTP at POST /api/tools/json-to-zod-schema/execute — no key, 60 requests/min.

Open the REST reference for Json To Zod Schema →

More Seo tools