Upsert offer calculation
upsert_offer_calculationCreate or update the OFFER calculation of a procedure — the positions, rates and surcharges a bid is priced from. This is the layer that did not exist: tenders.estimated_value and hourly_rate_min/max are what the CONTRACTING AUTHORITY says, and the project budget tables only come into being after the award. One calculation per procedure, on purpose: two calculations on one bid are two truths, and after the award nobody can say which one was submitted. unit decides whether quantities are person-days or person-months — the BASt counts days, Horizon Europe counts months, and carrying the unit in one's head is how 366 days become 366 months. The surcharges are kept apart because they answer different questions and get moved separately in a conversation: overhead is calculated, risk is estimated, margin is intended.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upsert_offer_calculation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | ||
| notes | No | ||
| title | No | ||
| vat_pct | No | Default 19. | |
| currency | No | ||
| grant_id | No | ||
| risk_pct | No | Applied to the full prime cost. | |
| tender_id | No | ||
| margin_pct | No | The TARGET margin. It is compared against what the offer prices actually achieve, never added on top — the price follows from the rates someone decided, and the margin falls out of it. | |
| overhead_pct | No | Gemeinkosten, in percent, applied to PERSONNEL cost only. | |
| price_ceiling | No | The authority's ceiling, where the documents name one. Deliberately not read from estimated_value: an estimated contract value is an announcement, a ceiling is an exclusion threshold. | |
| air_kwh_per_m3 | No | Specific energy of compressed-air generation, kWh per m3 (normal). Converts the parts' air consumption into electricity; needed as soon as one part uses air. | |
| calculation_id | No | Update this one instead of the procedure's. | |
| expected_start | No | Date, only for display. | |
| duration_months | No | ||
| energy_price_per_kwh | No | Net electricity price per kWh in the calculation currency, for the annual energy cost. | |
| operating_hours_per_year | No | Basis of the purchased parts' annual energy, e.g. 3 shifts x 250 days. |