validate_config
Validate job configurations against the Jsoncut API to check schema compliance, resource availability, and token cost before submission.
Instructions
Validate a job configuration against the jsoncut API.
This tool sends the configuration to the API's validation endpoint to check:
Schema compliance
Resource availability
Estimated token cost
Any configuration errors
WHEN TO USE:
ONLY call this tool if the user has provided actual media file paths (e.g., from uploaded files)
DO NOT validate configurations with placeholder paths like "/image/2024-01-15/userXXX/..."
Always call this after creating a configuration when real file paths are available
BENEFITS:
Catches errors before job submission
Provides accurate token cost estimates
Verifies that referenced files exist and are accessible
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": {
"type": "<type>",
"config": "<config>"
},
"name": "validate_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Job type: image or video | |
| config | Yes | The configuration object to validate (from create_image_config or create_video_config) | |
| apiKey | No | API key (optional if JSONCUT_API_KEY env var is set) |