mock_from_schema
Generate realistic mock data from any JSON Schema, with contextual values for emails, names, dates, and more. Supports all schema types and constraints.
Instructions
Generate realistic mock data from a JSON Schema. Uses smart field-name detection to produce contextual values: email fields get valid emails, name fields get realistic names, dates get ISO strings, etc. Supports all JSON Schema types and constraints.
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": "<schema>"
},
"name": "mock_from_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Random seed for reproducible output. Same seed + same schema = same data. | |
| count | No | Number of mock objects to generate (default: 1). If > 1, returns an array. | |
| schema | Yes | The JSON Schema to generate mock data from |