Skip to main content
Glama

AgentCustomerCare

Estimate the cost of one error (K) with a band

estimate_error_cost
Read-onlyIdempotent

K 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

NameRequiredDescriptionDefault
cNo
rNo
K_lowNo
K_highNo
ceilingNo
evidenceNoCounts on the sealed part of the test set. correct + handed_over + wrong = n. A missed handover counts as wrong.
componentsYes
assumptionsNoDefaults 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, and the description adds substantive behavior beyond them: it discloses the optional decision output across low/middle/high K and the tipping points, and draws a modeling boundary around tail risks. It does not discuss validation failures or default handling, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is front-loaded (definition of K first, optional outputs second, modeling caveat last) and dense with information. The opening sentence is long and clause-heavy, but little of it is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with eight parameters, nested objects, no output schema and only 25% schema description coverage, the description covers the cost model and optional outputs adequately but omits the meaning of c, the supplied K bounds, and how assumptions defaults affect results. It points to a guide, which mitigates but does not close the gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With schema coverage at 25%, the description compensates well: it explains the five component objects, the quantity × amount structure with optional low/high values, and the role of evidence and r. It still leaves c, K_low, K_high and the assumptions block unexplained beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific computed quantity (K) and enumerates its five components, so an agent knows exactly what the tool produces. It is less explicit about how this differs from siblings such as decide_autonomy, leaving differentiation to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives useful input-conditional guidance – evidence plus r yields the decision and tipping points, and tail risks belong in a ceiling rather than K – but never states when to call this instead of a sibling tool or what prerequisites the caller must have.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources