Cost Per Resolution
metrx_cost_per_resolutionThe two numbers on a per-resolution AI bill (Intercom Fin, Zendesk AI, Sierra, Decagon): the effective price per billed resolution and, given total conversations, the billed-resolution share. The vendor's definition of resolved is echoed back verbatim as the vendor definition, not verified. Both numbers are the vendor's own count and come back labelled vendor-reported, not Verified. A pure function over your input: reads nothing, stores nothing, needs no key. It always ends with the next step: send one export (bill lines with ticket ids plus your ticket export for the same period) to check_vendor_bill, which recounts it.
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": {
"bill_total": "<bill_total>",
"billed_resolutions": "<billed_resolutions>",
"period": "<period>"
},
"name": "metrx_cost_per_resolution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | Yes | The billing period the bill covers (from on or before to). | |
| vendor | No | The vendor name, if you want it echoed. | |
| currency | No | ISO 4217 code of the bill, such as USD (the default) or EUR. | |
| bill_total | Yes | What the vendor billed for the period, in the bill currency. | |
| billed_resolutions | Yes | How many resolutions the vendor billed in the period. | |
| total_conversations | No | All conversations the agent handled in the period; adds the billed-resolution share. | |
| vendor_resolved_definition | No | The vendor's own wording for what counts as resolved; echoed back verbatim as the vendor's definition, not verified. |