Skip to main content
Glama

Sparkwell Optimus

Cash flow impact calculator

calculate_cash_flow_impact
Read-onlyIdempotent

Estimates how much cash a UK business that sells on credit could release by getting paid faster: what each day of debtor days ties up, the one-off cash released by reaching a target number of debtor days, and the yearly borrowing cost that could save. Use it when the user asks how much cash faster payment, shorter terms or lower debtor days would free up. Needs annual credit sales in pounds and either current debtor days or the total customers owe today; the target debtor days and borrowing rate are optional assumptions. Aggregate figures only. A read-only calculation: nothing is stored.

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": {
      "annual_credit_sales_gbp": "<annual_credit_sales_gbp>"
    },
    "name": "calculate_cash_flow_impact"
  }
}

Input Schema

NameRequiredDescriptionDefault
trade_debtors_gbpNoTotal customers owe today, due and overdue; used to work out debtor days when current_debtor_days is not known. Pounds sterling (GBP) as a plain number, e.g. 12500 for £12,500: no £ sign, commas or text. Allowed: £1 to £10,000,000,000, at most 2 decimal places. Optional.
target_debtor_daysNoHow quickly the business would like customers to pay, in days. A whole number of days. Allowed: 0 to 365. Optional: if the user does not know it, leave it out and Optimus uses an illustrative 30, which the result lists as an assumption. Do not guess a value.
current_debtor_daysNoThe average number of days customers take to pay. Give this or trade_debtors_gbp; if both are given, this one is used. A whole number of days. Allowed: 1 to 730. Optional.
borrowing_rate_percentNoThe business’s cost of borrowing a year, for example its overdraft or invoice finance rate. A percentage as a number of percent: 8 means 8%, so never send 0.08 for 8%. Allowed: 0% to 50%, at most 2 decimal places. Optional: if the user does not know it, leave it out and Optimus uses an illustrative 8%, which the result lists as an assumption. Do not guess a value.
annual_credit_sales_gbpYesSales invoiced to trade customers in a year, excluding cash sales. Pounds sterling (GBP) as a plain number, e.g. 12500 for £12,500: no £ sign, commas or text. Allowed: £1 to £10,000,000,000, at most 2 decimal places. Required: if the user has not given it, ask them for it rather than guessing.

Output Schema

NameRequiredDescriptionDefault
toolYes
displayYes
resultsYes
summaryYesOne or two plain-English sentences giving the main result.
currencyYes
disclaimerYes
assumptionsYesAssumptions the method makes.
inputs_usedYes
limitationsYesWhat the result does not cover.
methodologyYesHow the figures are worked out.
web_tool_urlNoThe same free tool on the Optimus website.
recommendationsYesGeneral suggestions, not guaranteed outcomes.
assumptions_appliedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so 'A read-only calculation: nothing is stored' largely restates them. The one genuinely additive behavioral fact is 'Aggregate figures only,' which constrains what kind of input is meaningful, plus the note that unspecified assumptions (30 days, 8%) are echoed back in the result. That is modest added context rather than rich disclosure.

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 purpose and trigger are front-loaded in the first two sentences, then inputs, then the aggregate/read-only constraints, so the ordering is sensible. It is a single dense paragraph of roughly 110 words with little filler, though the list of three computed outputs could be trimmed marginally.

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?

For a five-parameter read-only calculator, the description covers what is computed, when to invoke it, which inputs are mandatory versus optional, fallback assumptions, and the aggregate-only boundary. Return values need not be described because an output schema exists, and safety profile is covered by annotations, so nothing an agent needs in order to call it correctly is absent.

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 schema already carries per-field meaning; the description nonetheless synthesizes the key logic an agent needs: annual credit sales are required, and either current debtor days or total owed today must be supplied, with target days and borrowing rate being optional assumptions. This either/or framing and the required-vs-optional grouping add real value beyond reading five separate property descriptions.

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 gives a specific verb ('Estimates') and a specific resource (cash released by faster payment for a UK credit-selling business), and enumerates the three figures produced: per-day cash tied up, one-off cash released at a target debtor days, and yearly borrowing cost saved. This is far from tautological, but it never names or contrasts any of the sibling tools (invoice chasing cost, credit control health, overdue invoices), so differentiation is left to inference.

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 states an explicit trigger condition: 'Use it when the user asks how much cash faster payment, shorter terms or lower debtor days would free up.' It also implies a scope boundary with 'Aggregate figures only,' steering away from per-customer analysis. What is missing is any explicit when-not or named alternative tool for adjacent questions (e.g. cost of chasing vs cash released).

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.

Resources