Skip to main content
Glama

AICTIONBOT™ Werkbank

Payment terms harmoniser: supplier terms against your standard, cash tied up, discounts worth taking, baseline date and a letter to suppliers

harmonise_payment_terms
Read-onlyIdempotent

Takes your supplier list (supplier, annual spend, payment terms as written such as 30 days net or 2% 10 days net 45, optional baseline date, category, size, exception) and a standard such as net 60. Returns per supplier the net days, the gap to the standard and the cash tied up (annual spend times gap divided by 365), the spend-weighted average terms today and after harmonising, the interest benefit at your cost of capital, discounts whose annual rate beats the cost of capital (take the discount instead of longer terms), suppliers whose period starts at the invoice date, exceptions such as taxes, payroll, rent and utilities, a fairness note for small suppliers, and a letter to suppliers in German or English. Red: large supplier at least 30 days below the standard. Not legal or tax advice. For a single discount deadline use check_discount_window. Licence, or one free check every 30 days.

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": {
      "rows": "<rows>"
    },
    "name": "harmonise_payment_terms"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsYesOne row per supplier: supplier, annual_spend, payment_terms (as written, e.g. '30 days net', '2% 10 days, net 45', 'net 60'), optional baseline (invoice date, invoice receipt, goods receipt), category, size (small), exception. German column names work too (lieferant, jahresvolumen, zahlungsbedingung, basisdatum, kategorie, groesse, ausnahme).
languageNoLanguage of the answer. Default de.
target_daysNoYour standard net days. Default 60.
interest_rateNoCost of capital in percent a year, used for the interest benefit and the discount comparison. Default 5.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare a safe read-only, idempotent, closed-world operation, and the description still adds substantial behaviour: the cash-tied-up formula, the 'Red: large supplier at least 30 days below the standard' threshold, the discount-versus-cost-of-capital rule, the fairness note for small suppliers, and the 'not legal or tax advice' disclaimer. The rate limit ('one free check every 30 days') is context the annotations do not carry.

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 inputs, then outputs, then a red-flag rule, then scope caveats and the alternative routing — a sensible order. It is dense and reads as a long run-on with stacked parentheticals, so it is efficient rather than elegant; a little structure would help scanning.

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

Completeness5/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 fully compensates by enumerating the returned fields, the computed metrics, and the generated letter. For a multi-output computation tool, an agent has everything needed to decide and call it correctly.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning: it explains that 'target_days' is the standard being harmonised toward, that 'interest_rate' drives both the interest benefit and the discount comparison, and that 'language' selects the supplier letter. The row-field listing mostly echoes the schema, including the German column aliases.

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 and resource ('takes your supplier list ... and a standard such as net 60 ... returns per supplier the net days, the gap ... and the cash tied up') with scope and outputs spelled out. It also names the sibling it is not for ('For a single discount deadline use check_discount_window'), so an agent can distinguish it without opening the schema.

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 a clear routing rule to check_discount_window for single-deadline questions, and the licence line ('one free check every 30 days') signals a usage precondition. It stops short of stating explicit when-not-to-use cases beyond that one alternative, so it is strong but not exhaustive.

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.