Angebots- und Kanalkohorten vergleichen
get_sales_measurementRead a bounded cohort of existing learning opportunities by first recorded time, half-open startsAt/endsAt (at most 366 days, end not in the future). Reuses current customer-matched order evidence and frozen offer/channel versions at attribution. Requires crm:read, operations:read, accounting:read and current owner authority. Check cohortComplete and classificationComplete; incomplete sources suppress complete financial totals and result scenarios. Shared orders never count twice, currencies and revisions never mix. Recorded gross payments and recorded/estimated minutes do not prove net revenue, complete costs, customer acquisition cost or profit. Optional futureLinkedOrders yields only a conditional 95% expected-count interval for recorded payments of comparable linked orders, with at least 20 mature cases; never all-lead conversion, a realized prediction interval or an actual money forecast. Optional futureOfferUnitsPerLinkedOrder must explicitly state how many original offer units each future linked order represents; never infer one order equals one unit. When the original attributed offer version contains a confirmed internal cost plan and a positive net price hypothesis, economicForecast projects a conditional net-sales sensitivity and difference against planned costs for ALL supplied future orders/units, including those without expected payment. It reuses the qualified expected-payment interval; fewer than 20 mature cases, incomplete/shared/test sources, absent or inconsistent original plans, gross prices, missing units or unsafe amounts suppress money ranges. A later offer revision never retrofits the original attribution. This is an expectation sensitivity under explicitly stated unit, price, cost, comparability, independence and stationarity assumptions, not a prediction interval for realized revenue/profit. Price, cost and refund uncertainty are not modeled; actual full costs/payroll/profit remain unknown. No actual financial source or price is changed. Optional timeCostAssumption is an explicitly supplied internal planning rate: currency, hourlyCostMinor and basis. An existing owner-confirmed company management rate may supply the explicitly reported default. Never infer it from customer prices. timeCostScenario applies it only to reported minutes with known entry counts; estimates and absent time are excluded, while explicitly recorded zero remains zero. It returns a separate assumed time-cost component and, only when supported, a difference after that assumption. Currency mismatches and incomplete cohorts produce no cost amount. This neither verifies payroll/full costs/profit nor changes any source. Each group exposes costComparisonScope for an explicitly confirmed allocate_sales_cost assignment. channelCosts includes only exact-scope allocations from bounded current pages (at most five channels), excludes unbound or differently bound expenses, and reports incomplete or changed originals. issuedInvoiceNetAfterCredits separately reports original credit-note net and invoice net after documented corrections. Check state, recordedCreditCoverageComplete and unresolvedOrders; pending, unbound, changed or unavailable credit evidence suppresses a complete corrected amount. This same corrected invoice basis feeds direct/channel cost differences and their time scenarios; unknown corrections suppress those differences. Credit notes never infer a cash refund. cashAdjustments separately reuses the original document-payment reader: only stored provider-settlement evidence matched to the original invoice and qualified original credit notes contributes observedPaymentMinor, observedRefundMinor and their recorded difference. Check state and unresolvedOpportunities; missing or changed evidence remains unknown, never proof of zero refunds. The observed difference excludes unrecorded refunds, chargebacks and fees; current reversal coverage, retained revenue and profit remain unknown. No live provider refresh or new financial writer. documentedCostComparison is a separate documented invoice-net-after-credit difference after listed direct and explicitly scoped channel costs; unavailable coverage yields null, never inferred zero or full profit. No writes or tenant selector.
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": {
"startsAt": "<startsAt>",
"endsAt": "<endsAt>"
},
"name": "get_sales_measurement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endsAt | Yes | ||
| offerId | No | ||
| startsAt | Yes | ||
| channelId | No | ||
| horizonDays | No | ||
| futureLinkedOrders | No | ||
| timeCostAssumption | No | ||
| futureOfferUnitsPerLinkedOrder | No | Explicit planned number of the original offer's described units per future linked order. Never infer one order equals one unit. Used only for the conditional original-offer cost/revenue sensitivity, not an actual money forecast. |