Estimate liquidity at risk

Estimate liquidity-at-risk, tail funding need, committed-facility exhaustion probability, and residual unfunded shortfall from aligned operating paths.

What it's for

Lets CEOs and investors see both the cash buffer required in adverse futures and whether signed facilities actually cover it, including the remaining unfunded gap.

What you give it

Inputs split into evidence read from your connected systems, calibration your team owns, and numerical controls that affect precision but never the result's meaning.

Field Type Role Required
committed_facility number ≥ 0 Your calibration Optional
max_detail_rows integer ≥ 1, ≤ 500 Numerical control Optional
maximum_facility_exhaustion_probability number ≥ 0, ≤ 1 Your calibration Optional
minimum_liquidity_buffer number ≥ 0 Your calibration Optional
scenarios array of objects (3 fields) ≥ 2 items Evidence Yes
starting_liquidity number ≥ 0 Your calibration Yes
tail_probability number ≥ 0.001, ≤ 0.5 Your calibration Optional

Each scenarios record

Field Type Required
id string (non-empty) Yes
net_liquidity_changes array of number (≥ 1 item) Yes
probability number (≥ 0, ≤ 1) Yes
Example input
{
  "committed_facility": 300,
  "maximum_facility_exhaustion_probability": 0.1,
  "minimum_liquidity_buffer": 250,
  "scenarios": [
    {
      "id": "stress",
      "net_liquidity_changes": [
        -300,
        -350,
        -250,
        -100
      ],
      "probability": 0.2
    },
    {
      "id": "base",
      "net_liquidity_changes": [
        -180,
        -150,
        -80,
        20
      ],
      "probability": 0.6
    },
    {
      "id": "upside",
      "net_liquidity_changes": [
        -100,
        -20,
        80,
        120
      ],
      "probability": 0.2
    }
  ],
  "starting_liquidity": 1000
}

What you get back

This is the actual output of running the example above — computed by the same function the platform calls, not an illustration.

Example output
{
  "assumptions": [
    "Liquidity paths include timing of available cash, committed inflows, collateral/margin, working capital, obligations, and restricted balances consistently.",
    "The committed facility is legally and operationally drawable in every represented scenario unless path adjustments encode otherwise.",
    "LaR is conditional on supplied paths and probabilities, not a solvency or funding guarantee."
  ],
  "configuration": {
    "maximum_facility_exhaustion_probability": 0.1,
    "period_count": 4,
    "scenario_count": 3,
    "tail_probability": 0.1
  },
  "decision": "liquidity_facility_risk_within_tolerance",
  "method": "peak_liquidity_at_risk_v1",
  "scenario_diagnostics": [
    {
      "facility_exhausted": false,
      "minimum_liquidity": 0,
      "peak_liquidity_need": 250,
      "probability": 0.2,
      "scenario_id": "stress",
      "unfunded_shortfall": 0
    },
    {
      "facility_exhausted": false,
      "minimum_liquidity": 590,
      "peak_liquidity_need": 0,
      "probability": 0.6,
      "scenario_id": "base",
      "unfunded_shortfall": 0
    },
    {
      "facility_exhausted": false,
      "minimum_liquidity": 880,
      "peak_liquidity_need": 0,
      "probability": 0.2,
      "scenario_id": "upside",
      "unfunded_shortfall": 0
    }
  ],
  "summary": {
    "committed_facility": 300,
    "expected_peak_liquidity_need": 50,
    "liquidity_at_risk": 250,

Truncated for display — the full payload is 53 lines.

How it works

Statistical audit & measurement — Check whether a number is fit to decide on: coverage, timing, reconciliation, and the gaps a dashboard hides.

  1. 1 Freeze available starting liquidity, the protected minimum buffer, genuinely committed drawable facilities, horizon/cadence, and complete joint liquidity paths with probabilities.
  2. 2 Cumulate every path, measure its peak funding need relative to the buffer, then calculate weighted liquidity-at-risk and conditional tail funding need.
  3. 3 Separate facility exhaustion probability from residual unfunded shortfall and stress drawability, restrictions, collateral, covenants, and timing before presenting the decision.

Before you trust it

Every tool in the catalog ships with the conditions under which its answer is meaningful — and the conditions under which it should abstain instead of guessing.

Assumptions & guardrails

  • Metric definitions, weights, aggregate grain, sampling, missingness, dependence, and comparison windows correspond to the management claim being audited.
  • Paths consistently represent unrestricted liquidity and obligation timing, while the committed facility remains legally and operationally drawable in each represented state.
  • Association, instability, or measurement quality is not a causal effect and must not be converted directly into an individual employment decision.
  • Liquidity-at-risk is conditional on submitted paths and funding enforceability; it is neither a solvency opinion nor a guarantee that external capital will be available.

Minimum evidence

  • starting_liquidity: required and organization-defined
  • scenarios: at least 2 rows/items

How to validate it

Validate on future periods or held-out aggregate units, compare with a simple baseline, and require stability across plausible metric definitions and decision thresholds.

Calibrating it to your org

Same for everyone

The mathematical kernel, validation rules, method version, and JSON output semantics are organization-independent; no tenant-trained coefficients or company benchmark is embedded in the function.

Specific to you

  • complete aligned joint liquidity-change paths including restricted cash, collateral, working capital, taxes, obligations, and financing timing
  • liquidity perimeter, buffer, facility drawability and covenants, horizon/cadence, scenario probabilities/dependence, tail level, and exhaustion tolerance

Calibration workflow

  1. 1 Define the management decision, target outcome, aggregate unit, privacy boundary, cadence, and prediction/intervention horizon for this organization.
  2. 2 Build a tenant-scoped historical cohort using only information available before each prediction or decision; preserve zero periods, censoring, assignment probabilities, and unresolved outcomes when the method requires them.
  3. 3 Estimate statistical parameters on training history, but obtain costs, utilities, risk tolerance, practical-effect thresholds, capacity, and policy constraints from accountable decision owners.
  4. 4 Validate on later time windows or held-out aggregate units at the deployment grain, against a simple baseline and the function-specific validation strategy.
  5. 5 Deploy only if the returned decision clears evidence, overlap, calibration, robustness, and guardrail checks; warning, unsupported, schema-gap, and fallback decisions are abstentions.
  6. 6 Monitor realized outcomes, data drift, coverage, and decision regret; recalibrate at a governed cadence or after a detected regime/definition change, never merely because a stakeholder dislikes the result.

Call it from your AI

You don't wire up 388 tools in your MCP client. The GitRevio MCP server exposes 18 tools, three of which let an agent search the catalog, read a tool's schema, and run it — so the assistant finds this one on its own.

gitrevio_capabilities_search
  { "q": "estimate liquidityatrisk tail funding need committedfacility" }
  → finds "estimate_liquidity_at_risk"

gitrevio_capability_describe
  { "capability_id": "estimate_liquidity_at_risk" }
  → returns the input schema and agent guidance shown on this page

gitrevio_capability_run
  { "capability_id": "estimate_liquidity_at_risk", "arguments": { ... } }
  → returns the result shown above

Works in Claude Desktop, Claude Code, Cursor, Cline, Continue.dev, Goose and Aider. See the MCP server.

Related tools

Audit benefit double counting

Reconcile business-case benefit claims to unique economic source pools and allocation fractions, exposing overallocated sources and claim-level mismatches before portfolio value is aggregated.

Constrained optimization

Audit cost allocation consistency

Audit whether shared engineering, platform, cloud, vendor, or operating cost pools reconcile to source totals and follow their declared pro-rata allocation bases at every target.

Statistical audit & measurement

Audit ROI denominator integrity

Reconcile each claimed ROI investment denominator with evidenced cost entries, required categories, inclusion fractions, and shared evidence identity, then recompute ROI before a business case reaches prioritization.

Statistical audit & measurement

Build reverse stress scenarios

Solve the minimum standardized bounded combination of adverse driver shocks needed to breach a governed operating or financial threshold, with driver contributions, binding bounds, and single-driver break points.

Decision analysis

Calculate capital efficiency frontier

Construct a monotone concave capital-to-realized-value envelope, estimate each initiative or portfolio company's relative capital efficiency and value gap, and expose diminishing frontier returns without arbitrary weights.

Constrained optimization

Calculate engineering unit economics

Calculate uncertainty-aware engineering cost and net incremental contribution per adopted business outcome across aligned scenarios, including quality/run cost and downside-margin probability.

Decision analysis

See every tool in Finance & unit economics →

Ready to See Your Engineering work clearly?

Request a free demo