barrel_mcp_schema (barrel_mcp v3.0.1)

View Source

JSON Schema validation for MCP tool inputs and outputs.

A thin name over barrel_mcp_jsonschema, which implements the 2020-12 dialect MCP uses. Kept because it is what the registry and every caller already name.

Summary

Functions

Validate Value against Schema. Returns ok or {error, [Error]} where each error is {Path, Reason}.

Types

error/0

-type error() :: barrel_mcp_jsonschema:error().

Functions

validate(Value, Schema)

-spec validate(term(), map()) -> ok | {error, [error()]}.

Validate Value against Schema. Returns ok or {error, [Error]} where each error is {Path, Reason}.