jev_tiered_gate
Route decisions by confidence into automate, review, or escalate tiers using two thresholds. Fails closed on NaN confidence and runs locally without API calls.
Instructions
Two-threshold confidence routing (automate / review / escalate).
confidence >= high -> high_label, >= low -> middle_label,
otherwise low_label. Non-finite thresholds raise ValueError;
a NaN confidence escalates (fail closed). Local and deterministic — no
API call.
provider is validated against the registry; the gate is
provider-agnostic.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"choice": "<choice>",
"confidence": "<confidence>"
},
"name": "jev_tiered_gate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| low | No | ||
| high | No | ||
| choice | Yes | ||
| provider | No | jev | |
| low_label | No | escalate | |
| confidence | Yes | ||
| high_label | No | automate | |
| middle_label | No | review |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |