---
title: "Discussion on \"Zod vs Valibot vs ArkType for MCP Tool Schemas\" | Hashnode"
description: "Discussion on \"Zod vs Valibot vs ArkType for MCP Tool Schemas\". I compared Zod, Valibot and ArkType for MCP tool schemas: JSON Schema output, errors, datetime handling, parse speed, cold starts and bundle size."
url: "https://hashnode.com/posts/zod-vs-valibot-vs-arktype/6aeef990c8651197b68c7cdb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Zod vs Valibot vs ArkType for MCP Tool Schemas](https://fabwaseem.hashnode.dev/zod-vs-valibot-vs-arktype?utm_source=hashnode&utm_medium=feed)

I compared Zod, Valibot and ArkType for MCP tool schemas: JSON Schema output, errors, datetime handling, parse speed, cold starts and bundle size.

Nov 7 · 9 min read · fabwaseem.hashnode.dev  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#mcp](https://hashnode.com/tag/mcp)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#performance](https://hashnode.com/tag/performance)
-   [#zod](https://hashnode.com/tag/zod)

## Written by

[Waseem Anjum](https://hashnode.com/@fabwaseem)

@fabwaseem · Lahore, Pakistan

  
[View profile](https://hashnode.com/@fabwaseem)

Full Stack & AI Automation Engineer

I'm a full stack and AI automation engineer in Lahore, Pakistan. I build AI agents, MCP servers and automation pipelines, and the Next.js, React, Node.js and NestJS products around them, on PostgreSQL or MongoDB. Clear system design, fast pages and code that holds up in production.

## Responses 1

Markdown supported · ⌘↵ to post

[X1Y1](https://hashnode.com/@x1y1)

[Nov 8](https://hashnode.com/posts/zod-vs-valibot-vs-arktype/6aeef990c8651197b68c7cdb/comment/6aefedb91acaa896027a15c5)

The `listTools()` test is a good call, and I would take it one step further: snapshot the tools/list output in that test and diff it. Your table shows the same field emits different JSON Schema depending on the library, so a dependency bump can change what the model reads (a default disappears, a long regex appears) without any change in your own code. A snapshot diff turns that into a reviewed change instead of a silent one. And the `offset: true` catch is a good reminder to test with a non-UTC timezone at least once.
