verify_safety
[PURPOSE] Independent Execution Safety Gate for destructive commands, SQLi/shell injection detection, and mathematical logic evaluation (1D Wasserstein distance for context/hallucination drift, Shannon entropy gain, symbolic/numerical matrix solver, groundedness check). [CALL] Prior to executing proposed bash/DB commands or verifying math/distributions. [SKIP] Benign natural text conversation or memory delivery gating (handled by vault_access Output Gate). [VS] Pre-execution guard; does not execute target command. [RETURN] {isCertified:bool,riskLevel:number,violations:string[]}. [SIDE] None (read-only).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "verify_safety"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | Operation parameters. For wasserstein: { distributionA (or u, p, a, distA): number[], distributionB (or v, q, b, distB): number[], supports?: number[], u_weights?: number[], v_weights?: number[] }. For matrix_solve: { matrixA (or matrix, A): number[][], vectorB (or vector, b)?: number[], operation?: "solve"|"determinant"|"inverse"|"eigenvalues"|"svd" }. For entropy: { probabilities (or p, probs): number[] }. For groundedness: { output_text: string }. | |
| operation | No | Verification or math operation. | safety_check |
| actionProposal | No | Command, script, or action proposal to verify. |