Skip to main content
Glama
Cashfloow

Cashfloow

by johanschnor

Genbestilling

genbestilling
Read-only

Calculate what to reorder and how much using seasonally adjusted forecasts, safety stock, reorder points, and EOQ; estimate stockout risk, run-out timing, and total purchase cost.

Instructions

Hvilke varer der skal bestilles nu, og hvor mange: sikkerhedslager, genbestillingspunkt og økonomisk ordrestørrelse (EOQ) pr. vare ud fra en sæsonjusteret prognose, der er backtestet på salget i leveringstiden. Giver risikoen for at blive udsolgt før en ny levering, hvornår lageret slipper op, hvilke varer der snart skal bestilles, og hvad indkøbet koster samlet (vigtigt for likviditeten). Brug til "hvad skal vi bestille?", "løber vi tør for noget?" og indkøbsplanlægning.

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

Input Schema

NameRequiredDescriptionDefault
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
servicegradNoØnsket sandsynlighed for ikke at løbe tør i en leveringsperiode, fx 0.95. Udelades: A-varer 0.97, B 0.95, C 0.90.
leveringstid_dageNoLeveringstid fra leverandør i dage, for alle varer. Udelades: leverandørens leveringstid pr. vare, hvis den kendes, ellers 14 dage.
lageromkostning_procentNoÅrlig omkostning ved at have varer på lager i procent af kostprisen (kapital, plads, svind). Standard 20.
bestillingsomkostning_krNoOmkostning pr. indkøbsordre (tid, fragt, håndtering). Standard 500 kr.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds genuine context beyond that: the forecast is seasonally adjusted and backtested on lead-time sales, and the tool surfaces stockout risk, depletion timing and total purchase cost — methodology and output shape the agent would otherwise not know.

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?

Purpose is front-loaded in the opening clause of the first sentence, and the second sentence is devoted to concrete questions it answers. It is dense Danish with long parenthetical asides ("vigtigt for likviditeten") that add slight bulk, but nothing is filler.

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 no output schema, the description carries the burden of telling the agent what comes back — reorder quantities, stockout risk, depletion timing and total purchase cost are all enumerated, which is strong. What is missing is any hint about result granularity (per item vs aggregate) or whether the two data sources differ in confidence.

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 100%, including defaults (servicegrad A/B/C 0.97/0.95/0.90, 14-day fallback lead time) and the eksempel vs e-conomic source distinction. The description adds no parameter-level meaning beyond the schema, so the baseline 3 applies.

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?

States a specific verb+resource: computes per-item safety stock, reorder point and EOQ from a seasonally adjusted, backtested forecast. It is clearly distinguishable from siblings like lageroverblik (stock view) and salgsprognose (sales forecast) because it names the decision output — what to order and how much.

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?

Explicit use contexts are given ("hvad skal vi bestille?", "løber vi tør for noget?", "indkøbsplanlægning"), which tells the agent when to reach for it. It stops short of naming alternatives or exclusions, so it does not reach the top tier.

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