Skip to main content

Module validate

Module validate 

Source
Expand description

apr.validate — M2 subprocess wrapper over apr validate <model> --json.

This was the first M2 tool shipped and established the subprocess pattern every M2/M3 apr.* wrapper follows: spawn apr <subcommand> --json, capture stdout, pass through to the MCP client as a single text content block. Non-zero exit maps to isError: true with stderr attached. All 7 M2 wrappers (apr.validate, apr.tensors, apr.bench, apr.qa, apr.trace, apr.run, apr.serve) and the M3 addition apr.finetune now ship on this pattern.

Constants§

NAME
Tool name registered with MCP clients.

Functions§

call
Execute apr.validate by spawning apr validate <model_path> --json.
dispatch
HELIX-IDEA-002 — unified-signature shim for the inventory dispatcher.
validate_tool_definition
Return the MCP tool definition for apr.validate.