Skip to main content
Glama

Break-even and margin

breakeven_margin
Read-onlyIdempotent

Standard precision: this calculator uses ordinary floating-point arithmetic, keeps no dated table of official rates, and has not yet passed our full reference-test suite. Calculate cost-volume-profit break-even thresholds in units and revenue, contribution margin ratio, operational margin of safety, and degree of operating leverage (DOL).

Behavior: Deterministic, idempotent calculation with zero external side effects. Computes Unit Contribution Margin = unitPrice - unitVariableCost; Contribution Margin Ratio = CM / unitPrice; Break-Even Units = fixedCosts / CM; Break-Even Revenue = Break-Even Units * unitPrice. If expected units sold is provided, computes Margin of Safety = (expectedUnits - breakEvenUnits) / expectedUnits and Degree of Operating Leverage. Returns detailed breakdown.

Usage Guidelines: Use for pricing strategy, manufacturing and SaaS unit economics, and operational risk appraisal. Do not use for hourly freelance billing rate minimums; use billable_floor instead.

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": {
      "fixedCosts": "<fixedCosts>",
      "unitPrice": "<unitPrice>",
      "unitVariableCost": "<unitVariableCost>"
    },
    "name": "breakeven_margin"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitPriceYesSelling price per individual product or service unit in currency units. Must be greater than unitVariableCost.
fixedCostsYesTotal periodic fixed operating overhead costs in currency units (rent, salaries, software). Must be positive.
unitVariableCostYesDirect variable cost incurred per unit produced or delivered in currency units. Must be non-negative.
expectedUnitsSoldNoProjected sales volume in units to evaluate operational margin of safety and operating leverage. Default 0: no projected volume, so no margin of safety is shown.

Output Schema

NameRequiredDescriptionDefault
unitPriceNo
fixedCostsNo
breakEvenUnitsNo
expectedProfitNo
breakEvenRevenueNo
unitVariableCostNo
expectedUnitsSoldNo
marginOfSafetyUnitsNo
marginOfSafetyPercentNo
marginOfSafetyRevenueNo
unitContributionMarginNo
degreeOfOperatingLeverageNo
contributionMarginRatioPercentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / expectedUnitsSold / default
      Previous value: -500New value: +0
    • changedInput schema / properties / expectedUnitsSold / description
      Previous value: -"Projected sales volume in units to evaluate operational margin of safety and operating leverage."New value: +"Projected sales volume in units to evaluate operational margin of safety and operating leverage. Default 0: no projected volume, so no margin of safety is shown."
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "breakEvenRevenue": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "breakEvenUnits": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "contributionMarginRatioPercent": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "degreeOfOperatingLeverage": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "expectedProfit": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "expectedUnitsSold": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "fixedCosts": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "marginOfSafetyPercent": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "marginOfSafetyRevenue": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "marginOfSafetyUnits": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "unitContributionMargin": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "unitPrice": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "unitVariableCost": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  3. Changed3 schema fields changed
    • removedInput schema / properties / fixedCosts / default
      Removed value: -10000
    • removedInput schema / properties / unitPrice / default
      Removed value: -50
    • removedInput schema / properties / unitVariableCost / default
      Removed value: -20
  4. Changed4 schema fields changed
    • changedInput schema / properties / expectedUnitsSold / description
      Previous value: -"Projected unit sales volume for margin of safety analysis"New value: +"Projected sales volume in units to evaluate operational margin of safety and operating leverage."
    • changedInput schema / properties / fixedCosts / description
      Previous value: -"Total fixed periodic operating costs ($)"New value: +"Total periodic fixed operating overhead costs in currency units (rent, salaries, software). Must be positive."
    • changedInput schema / properties / unitPrice / description
      Previous value: -"Selling price per unit ($)"New value: +"Selling price per individual product or service unit in currency units. Must be greater than unitVariableCost."
    • changedInput schema / properties / unitVariableCost / description
      Previous value: -"Variable cost incurred per unit ($)"New value: +"Direct variable cost incurred per unit produced or delivered in currency units. Must be non-negative."
  5. Added

TDQS

A4.4/5.0
Behavior4/5

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

The 'Deterministic, idempotent calculation with zero external side effects' line largely restates the supplied annotations, but the precision disclaimer ('ordinary floating-point arithmetic, keeps no dated table of official rates, has not yet passed our full reference-test suite') is genuine behavioral context an agent cannot get from the structured fields. It also lists the actual formulas applied, which reveals the computation path.

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

Conciseness3/5

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

The precision caveat is placed ahead of the statement of purpose, so the first thing an agent reads is a disclaimer rather than what the tool does. The formula block is long but each formula earns its place; the wasted sentence is the one restating idempotency and side-effect freedom already covered by annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With a 4-parameter tool, full schema coverage, an output schema, and complete annotations, the description supplies everything needed to invoke it correctly: inputs, formulas, conditional behavior, and sibling routing. Nothing essential is missing, though it does not mention behavior when the schema preconditions are violated (e.g., unitPrice <= unitVariableCost).

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema by showing how parameters compose: CM = unitPrice - unitVariableCost, Break-Even Units = fixedCosts / CM, and the conditional role of expectedUnitsSold ('If expected units sold is provided...'). This makes the optional parameter's effect explicit rather than merely documented.

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

Purpose5/5

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

Names a specific verb ('Calculate') and enumerates the concrete outputs: break-even thresholds in units and revenue, contribution margin ratio, margin of safety, and degree of operating leverage. It also explicitly separates itself from billable_floor, so an agent can route correctly without inspecting either schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use contexts (pricing strategy, manufacturing and SaaS unit economics, operational risk appraisal) plus an explicit when-not ('hourly freelance billing rate minimums') and names the alternative sibling (billable_floor). This is the full when/when-not/alternative pattern.

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