Skip to main content
Glama
vola-trebla

zod-contract-mock-forge-mcp

by vola-trebla

evaluate_schema_evolution

Detect breaking changes when a Zod schema is tightened. Generates mocks from the old schema and validates them against the new schema to report exactly which fields and constraints now reject previously valid data.

Instructions

Detect breaking changes when a Zod schema is tightened — before tests run. Generates mocks from the old schema, validates them against the new schema, and reports exactly which fields and constraints now reject previously valid data. Use when you changed a schema and want to know if existing test fixtures will break.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
schema_file_pathYesAbsolute path to the TypeScript file containing the updated Zod schema
old_schema_contentNoFull content of the old schema file. Omit to automatically retrieve the last committed version via git show HEAD.
schema_export_nameYesName of the exported Zod schema variable
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries full burden. It details the process (generates mocks, validates, reports) but does not discuss side effects, performance, or auth requirements. Adequate for a read-only analysis tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with no wasted words. Front-loaded with the core purpose, then conditions and output. Ideal length for quick comprehension.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers inputs and usage well, but lacks explanation of output format or return value. Since no output schema, the description should specify what 'reports exactly which fields and constraints' means in practice (e.g., format, file, console).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but description adds value by clarifying behavior: 'omit to automatically retrieve last committed version via git show HEAD' for old_schema_content, and 'absolute path' for schema_file_path.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description uses specific verbs ('detect breaking changes', 'generates mocks', 'validates', 'reports') and identifies the resource ('Zod schema evolution'). It clearly distinguishes from sibling tools like 'generate_valid_mock' or 'introspect_schema'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to use: 'Use when you changed a schema and want to know if existing test fixtures will break.' Does not mention when not to use or alternative tools, but sibling list provides context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vola-trebla/zod-contract-mock-forge-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server