Skip to main content
Glama

Sparkwell Optimus

Overdue invoice assessment

assess_overdue_invoices
Read-onlyIdempotent

Estimates what overdue customer invoices are costing a UK business that sells on credit, such as a food and drink wholesaler: the cost of funding the overdue amount at its borrowing rate, the part the user estimates may never be paid, and the extra sales needed to earn that back at its net margin. Use it when the user asks what late payment or overdue debts cost them. Needs the total overdue in pounds, the average days overdue and the net profit margin; the borrowing rate and bad-debt share 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": {
      "overdue_total_gbp": "<overdue_total_gbp>",
      "average_days_overdue": "<average_days_overdue>",
      "net_margin_percent": "<net_margin_percent>"
    },
    "name": "assess_overdue_invoices"
  }
}

Input Schema

NameRequiredDescriptionDefault
overdue_total_gbpYesTotal of every unpaid customer invoice that is past its due date. Pounds sterling (GBP) as a plain number, e.g. 12500 for £12,500: no £ sign, commas or text. Allowed: £1 to £1,000,000,000, at most 2 decimal places. Required: if the user has not given it, ask them for it rather than guessing.
net_margin_percentYesThe business’s net profit margin: the profit left from each £1 of sales after all costs. A percentage as a number of percent: 8 means 8%, so never send 0.08 for 8%. Allowed: 0.1% to 80%, at most 2 decimal places. Required: if the user has not given it, ask them for it rather than guessing.
average_days_overdueYesRoughly how long, on average, those invoices have been overdue. A whole number of days. Allowed: 1 to 730. Required: if the user has not given it, ask them for it rather than guessing.
bad_debt_share_percentNoThe user’s own estimate of the share of the overdue amount that may never be paid. 0 if they expect it all to be paid. A percentage as a number of percent: 8 means 8%, so never send 0.08 for 8%. Allowed: 0% to 100%, at most 2 decimal places. Optional: if the user does not know it, leave it out and Optimus uses an illustrative 0%, which the result lists as an assumption. Do not guess a value.
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.

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
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, and the description adds that the calculation is aggregate-only, nothing is stored, and omitted optional inputs fall back to illustrative 0% bad debt and 8% borrowing assumptions that the result lists. That goes beyond the annotations, though it does not discuss accuracy limits or error cases.

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 description front-loads the purpose, then moves through inputs, assumptions, and read-only scope in a compact flow. The opening sentence is long and the read-only point is partly duplicative of annotations, but no sentence is wasted.

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?

For a moderate-complexity calculation with a full input schema, output schema, and rich annotations, the description covers the cost components, use case, required and optional inputs, and assumption handling. It leaves sibling differentiation to the tool name, but nothing essential for invoking the calculation is missing.

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%, so all five parameters—including ranges such as 0.1–80% margin and £1–£1B overdue total—are already fully documented. The description only restates which inputs are required versus optional, adding little semantic detail beyond the schema.

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 opening sentence names a specific operation—estimating funding cost, bad-debt exposure, and recovered-sales impact of overdue invoices—and scopes it to UK credit sellers. It is clear enough to separate this from generic accounting tools, though it never explicitly contrasts itself with similarly named sibling calculation tools.

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 an explicit trigger: use when the user asks what late payment or overdue debts cost them. It does not state when not to use it or name an alternative sibling for adjacent questions such as credit-control health or invoice-chasing cost.

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