Skip to main content
Glama

Samuelz® Sales

Angebots- und Kanalkohorten vergleichen

get_sales_measurement
Read-onlyIdempotent

Read 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

NameRequiredDescriptionDefault
endsAtYes
offerIdNo
startsAtYes
channelIdNo
horizonDaysNo
futureLinkedOrdersNo
timeCostAssumptionNo
futureOfferUnitsPerLinkedOrderNoExplicit 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / futureOfferUnitsPerLinkedOrder
      Added value: +{
      +  "description": "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.",
      +  "maximum": 10000,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  2. First observed

TDQS

B3.1/5.0
Behavior5/5

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

Annotations already declare readOnly, non-destructive, idempotent and closed-world, and the description goes far beyond them: required scopes (crm:read, operations:read, accounting:read), owner authority, the 366-day and no-future-end bounds, suppression rules for incomplete or shared sources, currency/revision immutability, and an explicit 'no writes, no tenant selector, no live provider refresh'. It also discloses what the numbers do NOT prove (net revenue, full costs, payroll, profit, zero refunds), which is exactly the kind of caveat annotations cannot carry.

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

Conciseness2/5

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

This is a single dense block of prose with heavy repetition — the no-writes/no-tenant guarantee, the 'never infer from customer prices' rule and the 'not proof of profit' caveat each recur multiple times. Only the first sentence is properly front-loaded; the rest buries the operative conditions (mature-case thresholds, suppression triggers) mid-paragraph. It would need substantial restructuring, not trimming, to be scannable.

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 read tool with eight parameters, nested objects, no output schema and no return-type documentation, the description does cover a lot of behavioral ground, including the meaning of several return fields (cohortComplete, classificationComplete, costComparisonScope, channelCosts, cashAdjustments). Still, the response shape is described only in scattered fragments, so an agent cannot predict the payload structure, and the missing horizonDays/offerId/channelId semantics leave real gaps.

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

Parameters3/5

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

Schema description coverage is only 13%, so the description must compensate. It does well on the nested and non-obvious parameters: futureLinkedOrders is qualified as a conditional 95% expected-count interval requiring 20 mature cases, futureOfferUnitsPerLinkedOrder explicitly forbids assuming one order equals one unit, and timeCostAssumption's currency/hourlyCostMinor/basis are all given meaning. However offerId, channelId and horizonDays (default 30, max 365) receive no explanation at all, leaving three of eight parameters undocumented anywhere.

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

Purpose3/5

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

The opening sentence gives a concrete verb and resource ("Read a bounded cohort of existing learning opportunities by first recorded time") with the time-window semantics, which is genuinely useful. But the title promises a cohort comparison of offers and channels while the body sprawls across time-cost scenarios, invoice-net-after-credit corrections, cash adjustments and documented cost comparisons, so an agent cannot form a crisp model of what this single tool returns. No sibling tool is named for contrast, so differentiation must be inferred.

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

Usage Guidelines2/5

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

The description states many preconditions for optional sub-outputs (at least 20 mature cases, confirmed cost plan plus positive net price hypothesis, explicit unit counts), which is conditional gating rather than usage guidance. It never says when an agent should choose this tool over get_sales_learning, get_sales_costs or get_sales_cost_sources, nor when to skip it. There are no explicit exclusions or alternative routing.

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