record_ersparnis
Record the Analyse-Agent's savings estimates (from get_analysepaket). eintraege: [{ auftrag_typ (uebergabe|lauf|sitzung|optimierung), auftrag_id, tag (YYYY-MM-DD from the package; not needed for optimierung), minuten_hand, minuten_kontrolle, minuten_klassisch, begruendung (one sentence), annahmen (1-2 sentences), sicherheit (niedrig|mittel|hoch) }] — for auftrag_typ optimierung instead: personentage, wartung_personentage_jahr, tage_bis_live, begruendung, annahmen, sicherheit. modell: the model name of the estimating agent. The server takes result, agent, workflow, channel, measured AI cost and the tenant's rates from its own data and computes saved CHF and net; entries with missing/invalid fields, unknown orders or orders already estimated are rejected with a reason (others are stored). Append-only. Afterwards the daily metrics of the affected days are recomputed.
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": {
"eintraege": "<eintraege>",
"modell": "<modell>"
},
"name": "record_ersparnis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modell | Yes | Model name of the estimating agent | |
| eintraege | Yes | Savings estimates per order, fields as described above |