Skip to main content
Glama

Sparkwell Optimus

Invoice-chasing time and cost

calculate_invoice_chasing_cost
Read-onlyIdempotent

Estimates the staff time and money a UK business spends chasing late-paying customers: hours a month and a year, the yearly cost, and the share of one full-time role. Use it when the user asks what chasing invoices or credit control admin costs them. Needs invoices issued a month and the share paid late; contacts per late invoice, minutes per contact and the hourly cost 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": {
      "invoices_per_month": "<invoices_per_month>",
      "late_share_percent": "<late_share_percent>"
    },
    "name": "calculate_invoice_chasing_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
hourly_cost_gbpNoHourly cost of the person chasing: pay plus on-costs such as employer pension and National Insurance. Pounds sterling (GBP) as a plain number, e.g. 12500 for £12,500: no £ sign, commas or text. Allowed: £1 to £500, at most 2 decimal places. Optional: if the user does not know it, leave it out and Optimus uses an illustrative £20, which the result lists as an assumption. Do not guess a value.
invoices_per_monthYesInvoices the business issues each month; an approximate figure is fine. A whole number. Allowed: 1 to 100,000. Required: if the user has not given it, ask them for it rather than guessing.
late_share_percentYesOf those invoices, the share not paid by the due date. 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. Required: if the user has not given it, ask them for it rather than guessing.
minutes_per_contactNoMinutes per chasing contact, including finding the details, writing notes and following up. A whole number of minutes. Allowed: 1 to 120. 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.
contacts_per_late_invoiceNoChasing calls, emails and letters per late invoice, together. A whole number. Allowed: 0 to 50. Optional: if the user does not know it, leave it out and Optimus uses an illustrative 3, 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

A4.1/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, so the description does not need to re-litigate safety. It adds genuinely useful context beyond them: aggregate figures only, nothing stored, and what happens when optional assumptions are omitted (illustrative defaults that appear as assumptions in the result).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four sentences, front-loaded with the purpose, then the trigger, then the input requirements, then the output constraints. Every sentence carries information an agent needs, and there is no redundant or decorative wording.

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?

The tool is a five-parameter, single-calculation tool with an output schema, so the description need not explain return values; it nonetheless names the outputs and clarifies aggregate-only and read-only semantics. Combined with the rich schema and annotations, nothing material is missing for correct invocation.

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%, so the schema already defines every parameter precisely, including defaults, ranges and formatting rules. The description only restates which inputs are required versus optional, adding no format or semantic detail beyond the schema, so the baseline of 3 applies.

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?

States a specific verb ('Estimates') and resource ('staff time and money a UK business spends chasing late-paying customers'), and lists the concrete outputs (hours per month/year, yearly cost, share of an FTE). The scope is clear and narrower than the sibling 'assess_credit_control_health', but it never names or explicitly contrasts a sibling, so it stops short of a 5.

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 an explicit trigger: 'Use it when the user asks what chasing invoices or credit control admin costs them.' That is a clear context sentence, but there are no exclusions or named alternatives, so an agent must infer when another tool is more appropriate.

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