prepare_json_validation
Prepare an Apify validation for JSON records and missing required fields. Send records as a non-empty array of JSON objects and requiredFields as a non-empty array of field names. Example arguments: {"records":[{"id":"example-1"}],"requiredFields":["id"]}. Returns an Apify MCP call, direct API request and estimated cost for approval. Does not validate records, send them to Apify, or incur charges.
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": {
"records": "<records>",
"requiredFields": "<requiredFields>"
},
"name": "prepare_json_validation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| records | Yes | JSON objects to validate. Wrap a single object in an array. | |
| requiredFields | Yes | Names of fields that must be present in each record. |