Skip to main content
Glama

Analyse an aged-debtors CSV

analyse_aged_debtors_csv
Read-onlyIdempotent

Analyse a user-supplied aged-debtors CSV and supplied Bank Rate to return review-only UK B2B chase wording with indicative statutory-interest and fixed-compensation calculations. Returns draft text and structured calculations without storing the CSV or sending messages.

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": {
      "csv_text": "<csv_text>",
      "sender_name": "<sender_name>",
      "bank_rate_percent": "<bank_rate_percent>"
    },
    "name": "analyse_aged_debtors_csv"
  }
}

Input Schema

NameRequiredDescriptionDefault
csv_textYesUser-supplied aged-debtors export with customer, invoice number, due date and outstanding amount columns. Supports at most 50 invoice rows; split larger exports before calling.
as_of_dateNoDate to calculate overdue days and interest as at; omit to use today in UTC.
draft_stageNoTone for the review-only reminder: gentle, formal or final. Omit to use formal wording.
sender_nameYesBusiness or sign-off name used in the review-only draft.
bank_rate_percentYesBank Rate percentage to use for this indicative calculation. SHVL adds the statutory 8 percentage points.

Output Schema

NameRequiredDescriptionDefault
draftsYes
summaryYes
currencyYes
as_of_dateYes
data_noticeYes
review_requiredYes
not_legal_adviceYes
bank_rate_percentYes
annual_rate_percentYes
not_overdue_invoicesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / as_of_date / description
      Previous value: -"Optional calculation date in YYYY-MM-DD. Defaults to today in UTC."New value: +"Date to calculate overdue days and interest as at; omit to use today in UTC."
    • changedInput schema / properties / csv_text / description
      Previous value: -"CSV text with customer, invoice number, due date and outstanding amount columns. Maximum 50 invoice rows."New value: +"User-supplied aged-debtors export with customer, invoice number, due date and outstanding amount columns. Supports at most 50 invoice rows; split larger exports before calling."
    • changedInput schema / properties / draft_stage / description
      Previous value: -"Optional draft style. Defaults to formal."New value: +"Tone for the review-only reminder: gentle, formal or final. Omit to use formal wording."
    • addedOutput schema / description
      Added value: +"Review-only calculation: summary totals and each draft show overdue principal, indicative statutory interest, compensation and total claim in GBP pence. drafts contains suggested subject and body; not_overdue_invoices lists excluded invoices. as_of_date and annual_rate_percent identify calculation assumptions. Nothing is stored or sent."
  2. 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 destructiveHint=false, so the safety baseline is covered. The description adds genuinely new behavioral context: the CSV is not stored, no messages are sent, output is review-only, and the calculations are explicitly 'indicative' rather than authoritative — all material for an agent deciding whether to trust the numbers.

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?

Two sentences, zero filler, with the core function stated first and the safety/review-only caveats immediately after. Every clause carries information an agent needs.

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?

An output schema exists, so return values need no prose explanation. Combined with 100% schema coverage and annotations covering the safety profile, the description supplies the remaining essentials: domain (UK B2B), indicative nature of the maths, and absence of storage or delivery side effects.

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 all five parameters (including the as_of_date pattern and draft_stage enum) are already documented. The description only reinforces that Bank Rate is 'supplied' and that statutory 8 percentage points are added — a point already made in the schema — so it adds little beyond the structured fields.

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 and resource ('Analyse a user-supplied aged-debtors CSV') plus the concrete output: review-only UK B2B chase wording with indicative statutory-interest and fixed-compensation figures. It never names a sibling tool to contrast with, but the 'user-supplied CSV' framing is specific enough that an agent can tell it apart from the Xero/credit-control lookup tools by resource alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: 'review-only' and 'without storing the CSV or sending messages' signal this is a safe, non-delivering analysis step, and the schema notes the 50-row cap. There is no explicit statement of when to prefer this over get_credit_control_brief or get_receivables_health, nor any prerequisite about where the CSV comes from.

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