Agentβ™₯︎Age
Catalog

io.github.machinegrade/validate

Official1 toolLive

by machinegrade Β· TypeScript

Deterministic validation for AI-generated artifacts: JSON Schema, OpenAPI response, SQL syntax.

Model Context Protocol (MCP) Server: io.github.machinegrade/validate

The io.github.machinegrade/validate MCP server provides deterministic validation of AI-generated artifacts against contracts. It supports checks for JSON Schema, OpenAPI response bodies, and SQL syntax, returning structured validation results intended to be evaluated before acting on generated outputs.

πŸ› οΈ Key Features

  • Validates artifact against a JSON Schema (json_schema), collecting all errors.
  • Validates a response body against an OpenAPI response schema (openapi_response) for a given path + method + status.
  • Checks SQL strings for syntax errors in a specified dialect (sql).
  • Returns a verdict object containing {valid, errors, latency_ms} rather than an error.
  • Uses HTTP 200 even when the artifact is invalid.

πŸš€ Use Cases

  • Pre-flight validation of AI outputs before downstream processing.
  • Contract checking for structured data (JSON Schema).
  • Verifying API responses against OpenAPI definitions.
  • SQL syntax checking for generated queries.

⚑ Developer Benefits

  • Deterministic, contract-based validation for AI-generated artifacts.
  • Aggregated errors in the verdict result.
  • Includes latency_ms for each check.

⚠️ Limitations

  • Validation results may be returned with HTTP 200 even when invalid.
  • The provided excerpt truncates details after β€œmalformed bod”.

Topics

ai-agentsjson-schemamcpmcp-serveropenapisqlvalidation

Related servers

More in Security