validate
v0.1.2Deterministic validation for AI-generated artifacts: JSON Schema, OpenAPI response, SQL syntax.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
validate
Validate an artifact against a contract (json_schema | openapi_response | sql) via the machinegrade validate API.
| Parameter | Type | Description |
|---|---|---|
artifact * | object | array | string | number | boolean | null | The artifact to validate, as a JSON value — not a JSON-encoded string. json_schema/openapi_response: the object/array/value itself. sql: the SQL statement as a string. |
type * | string | Which validator to run. |
contract | object | Validator-specific contract. json_schema: { schema }. openapi_response: { spec, path, method, status }. sql: { dialect }. |