Skip to main content
Glama
Cashfloow

Cashfloow

by johanschnor

Likviditetsrisiko

likviditetsrisiko
Read-only

Calculate the probability that bank balance drops below a minimum over coming weeks via Monte Carlo simulation, with weekly 80% ranges, worst-case distribution, and backtest accuracy.

Instructions

Sandsynligheden for at banksaldoen kommer under et minimum de næste uger, beregnet med Monte Carlo-simulation (2.000 forløb) ud fra hver kundes egen betalingsadfærd og variationen i salg og indkøb. Giver 80 %-intervaller for saldoen uge for uge, fordelingen af den laveste saldo, hvilke kunder der skaber mest usikkerhed, og hvor præcis prognosen for kundeindbetalinger har været i en backtest (inkl. om intervallerne er kalibrerede). Brug til "hvor stor er risikoen?", "hvor sikker er prognosen?" og "hvad er worst case?".

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": "likviditetsrisiko"
  }
}

Input Schema

NameRequiredDescriptionDefault
ugerNo
kildeNo"eksempel" = opdigtet demovirksomhed med 36 måneders data. "e-conomic" = live regnskabsdata (egne nøgler, ellers e-conomics demokonto med meget lidt data).eksempel
minimum_saldoNoSaldo, virksomheden ikke vil under, fx kassekreditens grænse eller en buffer

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

A3.6/5.0
Behavior3/5

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

The readOnlyHint and openWorldHint annotations already establish that this is a safe read against possibly external data. The description adds useful behavioral context — Monte Carlo method, 2,000 runs, 80% intervals, backtest calibration — but does not discuss runtime, cost, or the implications of the openWorld live-data mode beyond what the kilde parameter schema states.

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

Conciseness4/5

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

The core computation and sample size are front-loaded, then outputs, then use cases. It is dense and long but every clause carries information; no filler sentences.

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?

There is no output schema, and the description compensates by enumerating the return elements: weekly 80% intervals, distribution of the minimum balance, customer-level uncertainty contributors, and backtest calibration. Combined with the schema's parameter docs, an agent has enough to call it and interpret results, though live-mode caveats are only partially covered.

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 coverage is 67%, with kilde and minimum_saldo documented in the schema and uger uncommented. The description mentions 'næste uger' and the 80% intervals, which loosely maps to the horizon, but it adds no syntax, bounds, or default meaning beyond the schema, so the baseline 3 is appropriate.

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

Purpose4/5

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

The description names a specific computation and resource: the probability that the bank balance falls below a minimum, computed via Monte Carlo with 2,000 runs, plus the derived outputs. It implicitly separates itself from a plain liquidity forecast sibling by framing this as risk/probability and accuracy/backtest rather than a point forecast, but it never names that sibling explicitly.

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

Usage Guidelines4/5

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

It gives concrete use cases in the form of the questions it answers ('hvor stor er risikoen?', 'hvor sikker er prognosen?', 'hvad er worst case?'). There is no explicit when-not-to-use or named alternative, so it stops short of full routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.