Skip to main content
Glama
Cashfloow

Cashfloow

by johanschnor

Afvigelser

afvigelser
Read-only

Detect possible duplicate invoices, invoice amounts that deviate from a customer's or supplier's normal pattern, and open invoices older than the customer's 95th percentile within the last 90 days.

Instructions

Finder det usædvanlige de seneste 90 dage: mulige dobbeltfakturaer (samme modpart og beløb inden for 7 dage), fakturabeløb der afviger markant fra kundens eller leverandørens normale (robust z-score), og åbne fakturaer der er senere end kunden plejer (over kundens 95. percentil). Brug til "er der noget, der ser forkert ud?" og ved gennemgang af debitorer og kreditorer.

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

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

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 establish this as a safe read (readOnlyHint=true) and open-world; the description adds substantial method disclosure — the 90-day horizon, the 7-day matching window for duplicates, robust z-score for amount deviation, and the 95th-percentile rule for late open invoices. It nonetheless does not say how results are ordered or capped, which would matter for a detection sweep.

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?

Front-loaded with the detection scope, then the three rules, then the intended question. Dense but every clause carries information; slightly long parenthetical detail but not wasteful.

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?

No output schema exists, yet the description defines the detection logic well enough for an agent to interpret findings. Missing only a hint about result shape or volume, which is a minor gap for a read-only analytical tool.

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 100% and the single enum parameter 'kilde' is fully documented in the schema, including what each source contains. The description adds nothing about the parameter, 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 concrete verb+resource: it finds anomalies within a 90-day window and enumerates the three specific anomaly types (double invoices, robust z-score deviations, open invoices past the customer's 95th percentile). This is clearly distinguishable from the sibling tools, which cover payment time, liquidity, freight, and inventory rather than anomaly detection.

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?

Gives explicit use cases: asking "er der noget, der ser forkert ud?" and reviewing debtors and creditors. It does not name alternative tools or state when not to use it, but the framing of the intended questions is clear enough for selection.

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