generate_mock_variants
Generate multiple structurally valid but value-diverse mock objects from a Zod schema to surface edge cases in property-based testing. Supports reproducible output with a seed.
Instructions
Generate N structurally valid but value-diverse mocks from a Zod schema — for property-based testing. Use when generate_valid_mock is too deterministic and you need varied inputs to surface edge cases. Supply seed for reproducible output in CI.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"schema_code": "<schema_code>"
},
"name": "generate_mock_variants"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Seed for reproducible output — omit for random variants each call | |
| count | No | Number of mock variants to generate (default: 5, max: 50) | |
| schema_code | Yes | Zod schema code |