Skip to main content
Glama

validate_config

Validate job configurations for the Jsoncut API by checking schema compliance, resource availability, token costs, and errors 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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesJob type: image or video
configYesThe configuration object to validate (from create_image_config or create_video_config)
apiKeyNoAPI key (optional if JSONCUT_API_KEY env var is set)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jsoncut/jsoncut-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server