UniCraft Tools

UniCraft AI Model Router - Tool and Function Calling Management

Validate Tool Schema

AI-generated

Summary

Validate a JSON tool schema definition against the UniCraft API's validation endpoint to check for correctness and conformity.

Inputs

  • Tool Definition (required) — The JSON object representing the tool schema to validate. This must be valid JSON defining the tool's structure and properties.

Output shape

a single JSON object containing the validation result

The output includes 'valid' (boolean) indicating if the schema is valid, 'errors' array listing schema issues if any, and echoes back the submitted 'schema'. Requires UniCraft API credentials with valid baseUrl and apiKey.

Examples

Example 1: Validate a custom tool schema before creation

Input the tool schema JSON into 'Tool Definition' parameter and run the operation to receive validation feedback.

Discussion