Skip to main content
Glama

Receivables and Payables Aging Report

aging_report
Read-onlyIdempotent

Build an aging report for accounts receivable or payable. Send the as-of date and the open invoices (each with its due date and the amount still open; credits as negative amounts). Get back the totals and counts in the standard buckets (current, 1-30, 31-60, 61-90 and over 90 days past due), each bucket's share of the total, every invoice's days past due and bucket, the oldest item and the amount-weighted average days past due. Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO's key (check it at https://llpro.ai/aging-report). Labels are your own text: emails, web addresses and long digit runs are refused. Not legal, tax or financial advice.

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": {
      "as_of": "<as_of>",
      "invoices": "<invoices>"
    },
    "name": "aging_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_ofYesThe date the report is as of, YYYY-MM-DD.
ledgerNoreceivable (money owed to you) or payable (money you owe). Changes only the wording.receivable
invoicesYesOpen invoices, up to 200.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / invoices / items / properties / label / description
      Previous value: -"Your own label (an invoice number up to 5 digits in a row, a customer code; not a person)."New value: +"Your own label (an invoice number or customer code, up to 6 digits in a row; not a person)."
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/closed-world, and the description adds materially: free, no model, no network, no storage of submitted data, answers cryptographically signed with a verifiable URL, and an explicit input-sanitization rule (emails, URLs, long digit runs refused). It also issues a scope disclaimer that this is not legal/tax/financial advice. That is behavior an agent could not infer from the annotations.

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 purpose and inputs, then outputs, then errors and trust/policy notes — a sensible order. It is dense but every block carries information an agent needs, though the enumeration of answer field names is a somewhat opaque run-on that could be grouped more cleanly.

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, so the description takes on the burden of describing returns: bucket definitions, share of total, per-invoice days past due and bucket, oldest item, and weighted average. Combined with the error contract and signing note, an agent has everything needed to call and interpret the tool.

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 every parameter is already documented, including the negative-amount convention for credits and the label length limits. The description mostly restates those conventions rather than adding new syntax or format detail, so the baseline 3 applies.

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?

Opens with a specific verb and resource: 'Build an aging report for accounts receivable or payable.' It names the exact inputs, the bucket scheme, and the returned metrics, so an agent can distinguish this from neighboring finance tools (accrual_cutoff, bank_reconciliation_match) 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?

Clear operating context: submit an as-of date plus open invoices with due dates and open amounts, and the description states the precondition that credits must be negative. It also enumerates failure modes (bad input, too large, hourly limit). It stops short of naming alternatives or stating when not to use it, so it is a strong 4 rather than a 5.

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