Yichus / Reference / API MCP tools

api_law_check

Check declared Yichus/Law obligations. Mode sampled (default) uses seeded generation: holds is bounded observation, never proof. Mode exhaustive checks every value of an accepted finite type or every distinct value of a Bosatsu FiniteObligation list; holds-exhaustive applies only to that recorded scope. Unsupported domains, exceeded limits, unfinished witnesses, and worker failures never become a pass. Violated and inconclusive both mean not done.

Kind: LawCheck. Origin: Yichus/Mcp::catalog.

CLI: yichus law — sampled and finite exhaustive laws; use `yichus law --mode exhaustive` for a killable JVM worker (generic JVM `call` refuses that mode); MCP and WebMCP run the shared checker in killable workers.

Parameters

Read the result according to this tool’s scope: static checks, bounded execution checks, and descriptive diagrams answer different questions. A successful call is not a general approval of the program. The safety and permissions guide compares the checks and provides editable ownership, guard, and role examples.