Evaluate policy against tools
Evaluate a CLPI policy against a list of tools to determine which are allowed, forbidden, or unmapped. Returns a verdict with detailed violations, warnings, card coverage gaps, and overall coverage percentage. Useful for dry-run validation before deploying a policy.
Authorizations
Supabase JWT token in Authorization: Bearer header
Body
A complete CLPI policy document defining capability mappings, forbidden tools, escalation triggers, and enforcement defaults.
List of tool identifiers to evaluate against the policy
Optional agent ID to include agent-specific context in evaluation
Response
Policy evaluation result
Result of evaluating a CLPI policy against a set of tools or traces.
Overall evaluation verdict
pass, warn, fail List of policy violations detected
Non-blocking warnings about potential issues
Gaps between the policy and the alignment card
Fraction of tools covered by the policy (0.0 to 1.0)
0 <= x <= 1