Test Smart Mock
test_smart_mockTest smart mock matching for any field name to see which rule applies and what value it will generate. Verify your mock configuration before generating rules.
Instructions
Test Smart Mock matching for a given field name. Returns which matching rule would apply and what value it would generate. Useful for verifying Smart Mock configuration before generating rules. Requires project context (call set_context first).
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": {
"mockServerId": "<mockServerId>",
"fieldName": "<fieldName>"
},
"name": "test_smart_mock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fieldName | Yes | The field name to test matching for (e.g., 'email', 'firstName', 'createdAt') | |
| schemaType | No | Optional JSON Schema type hint (e.g., 'string', 'integer', 'number', 'boolean') | |
| mockServerId | Yes | The public Id (Guid) of the mock server | |
| schemaFormat | No | Optional JSON Schema format hint (e.g., 'date-time', 'email', 'uri', 'uuid') |