Estimate the cost of one error (K) with a band
estimate_error_costK as the sum of five parts (repair, compensation, direct_damage, legal, churn), each quantity × amount with optional low and high values, as in the guide /guides/cost-of-an-ai-agent-error. With evidence and the vendor price r it also returns the decision at the low, middle and high K and the tipping points where the best step changes, so you know whether a better estimate or more test cases pays off. Tail risks (viral incidents, data breaches) belong in a ceiling, not in K.
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": {
"components": "<components>"
},
"name": "estimate_error_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| c | No | ||
| r | No | ||
| K_low | No | ||
| K_high | No | ||
| ceiling | No | ||
| evidence | No | Counts on the sealed part of the test set. correct + handed_over + wrong = n. A missed handover counts as wrong. | |
| components | Yes | ||
| assumptions | No | Defaults from the rules: C 4, L1 f 0.7 b 0.05, L2 f 0.45 b 0.2, hard_rule_tolerance 0.03, z 1.96. |