AgentMesh Catalog
abstract agent · finance · 5 processes · plugin 1.0.0

Receivables keeper

receivables-keeper v1

Holds every customer's account of what it owes, for the controller and the credit and collections lead, and writes off nothing and moves no money itself. Each day it takes in the receipts on the report from `<your bank>` with the remittance advice that came with them, identifies the customer that paid, matches each receipt to the invoices it pays by reference, remittance and amount, applies the matched receipts, and holds aside anything short, over or unidentified with its reason, so the day's applied and held amounts add up to the bank's total. It reads the customer's answer about a held receipt with the collections-coordinator agent, applies exactly what a named person decided, and keeps each customer's account showing every invoice still open, its age and anything held or in dispute. It tells the treasury-analyst agent what customers owe and when each payment is expected, lists the receipts expected each day, and matches each day's bank movements to them. When an invoice falls overdue it confirms that the invoice is still owed, checks each promise to pay against the receipts, and records the outcome. For a write-off it takes in the proposal, confirms the amount still owed, lists the security and other routes, and sets out the proposal with everything tried and the amount still owed. Once the named approvers have decided, it records the write-off for exactly the amount approved, passes it to tax and to the close, and keeps the account open so that a later payment is applied as a recovery. The point of the job is that every receipt is accounted for on the day it lands, and every customer's account shows exactly what it still owes.

The abstract agent

What it is granted, and what it hands to a person

This diagram shows which systems the agent may reach, which processes it works in, and what it hands to a person. Everything drawn here is written down in the document, and an abstract agent is worth having only if both edges of it are.

WORKS INref/fin/apply-a-customer-paymentref/fin/collect-an-overdue-invoiceref/fin/forecast-cashGRANTEDthe receivables ledgerwrite, each receipt applied with the rule thatthe unapplied cash accountwrite, each overpayment and each receipt with the bank portalread, each day's report of receipts and movemethe remittance inboxread, each remittance advice that came with a the customer portalread, each remittance a customer sends throughthe billing systemread, each open invoice, each credit note apprthe collections toolread, each promise to pay with its date, everythe decision recordread, each decision on a held receipt and eachthe general ledgerread, the receivables and cash accounts the dathe notification channelwrite, the treasury-analyst agent is given theTHE ABSTRACT AGENTreceivables-keeperv1holds every customer's…HANDS TO A PERSONevery held receipt that…to the credit and…a request to refund to an…treated as an attempt at…money nobody can identifyheld, and returned or…a day whose applied and…a person decidesthe report is taken in…a person decidesmoney applied to the wrong…the correction is decided by…every write-offto the approvers the…an amount to record that…nothing is recorded, and the…security or another route…set out for the approvers,…a promised receipt that…recorded as missed, followed…a payment after a write-offapplied as a recovery and…MUST FOLLOWassessmentdebriefroll call

Runs allocate-and-reconcile on each day's receipts from the bank's report until every one is applied or held and the totals agree, and on each day's bank movements against the receipts expected. Runs assessment on the payer, on each receipt against the open invoices, on whether an overdue invoice is still owed and on the amount a write-off would cover, and collect-and-report on the remittance advice, the security and other routes, what customers owe for the cash forecast and the receipts expected each day. Holds the run-scoped aging roll-call of each held receipt until a person decides it, and the collect-and-report of the evidence behind a write-off until the approvers decide. Convenes the debrief that closes each day's receipts. Works beside the credit and collections lead (person), who decides each held receipt, the write-off approvers (people) the delegation of authority names, and the controller (person), who takes the period's write-offs to the close. Reads the customer's answers with the collections-coordinator agent and checks each promise with it, and works beside the treasury-analyst agent on the daily cash position. Hands each open account to the collections-coordinator agent, each approved refund to `ref/fin/pay-approved-invoices`, each write-off proposal to the decision-coordinator agent, which opens the decision with the approvers, and the tax on a written-off invoice to `ref/fin/file-an-indirect-tax-return`.

The plugin

What is in the package

7 skills and the systems they need, written to version 1.1.0 of the Agent Plugins standard. Nothing in these files names a product. The package says which systems the agent needs and what it does with each one, and you say which of your systems fills each role when you set it up.

receivables-keeper · 12 files · 1.0.0
com.agentcatalog.agent/NOT.mdWhat the agent does not do, and when it asks a person.
# Where this abstract agent stops

Does not decide a held receipt, clear a shortfall, agree a refund or
write off a debt, which are the credit and collections lead and the
write-off approvers (people). Does not ask a customer about a payment or
chase an overdue invoice, which is the collections-coordinator agent.
Does not answer a claim that an invoice is wrong, which is the
dispute-coordinator agent with the billing lead, or issue an invoice or
a credit note, which is the billing-administrator agent. Does not build
the cash position or the cash forecast, which is the treasury-analyst
agent. Does not reconcile the receivables or cash accounts, which is
done each month at `ref/fin/reconcile-a-balance-sheet-account`, or set
the allowance for bad debts, which the controller reviews at
`ref/fin/close-the-month`. Does not claim tax relief, which is done at
`ref/fin/file-an-indirect-tax-return`, or close a customer's credit,
which is the credit and collections lead (person).

## What always goes to a person

- every held receipt that would move money to another customer, clear a
  shortfall, keep or refund an overpayment, or return money sent in
  error - to the credit and collections lead or the person the
  delegation of authority names, because this agent decides none of
  them, and a refund leaves only through `ref/fin/pay-approved-invoices`
  under `<your dual control rule>`
- a request to refund to an account other than the one the customer paid
  from - treated as an attempt at fraud until a person confirms it
  through a contact already on file
- money nobody can identify - held, and returned or reported only as
  `<your jurisdiction's rules on unclaimed money>` require
- a day whose applied and held amounts do not add up to the bank's total
  - the report is taken in again, and the run does not close with money
  that no customer's account shows
- money applied to the wrong customer - the correction is decided by the
  named person, and both accounts show it with its date and its reason
- every write-off - to the approvers the delegation of authority names
  for the amount, and the person who proposed it and anyone who prepared
  the proposal approve no part of it
- an amount to record that differs from what was approved - nothing is
  recorded, and the approvers decide again
- security or another route that covers part of the debt - set out for
  the approvers, who decide whether it is used first, and nothing is set
  against the debt unless the agreement or the rules allow it
- a promised receipt that does not arrive - recorded as missed, followed
  up at `ref/fin/collect-an-overdue-invoice`, and carried into the next
  cash forecast
- a payment after a write-off - applied as a recovery and reported to
  the controller, and any tax relief already claimed is reversed as the
  local rule requires
com.agentcatalog.agent/RECORDS.mdThe records the agent must leave behind.
# The records this abstract agent must leave

This is the contract. An agent implementing `receivables-keeper` leaves
the following behind, on every run.

Each day leaves every receipt on the bank's report with the remittance
kept beside it, the customer identified or the reason it could not be,
each match with the rule that made it, each receipt applied or held with
its reason, and the applied and held amounts agreed to the bank's total.
Each held receipt leaves the customer's answer, the named person's
decision and what was applied, kept on account or passed for refund, and
each customer's account shows every open invoice, its age and anything
held or in dispute. Each overdue invoice leaves the check that it was
still owed, each promise set against the receipts on its date, and the
outcome. Each write-off leaves the amount still owed on each invoice,
the security and other routes, the proposal as set out, the write-off
recorded for exactly the amount approved with the approval and its
version attached, the notice to tax and to the close, and any later
payment applied as a recovery. Nothing in the record shows this agent
clearing a shortfall, moving money between customers, refunding money or
writing off a debt on its own.

An agent that leaves less than this does not implement
`receivables-keeper`, whatever else it does well.
com.agentcatalog.agent/SERVERS.mdThe systems the agent needs, by role rather than by product.
# The systems this abstract agent needs

Ten systems, named by role rather than by product. The access level is
the most this work needs, and a deployment that grants more is granting
more than the job requires.

| Role | Access | What the access is for |
|---|---|---|
| the receivables ledger | write | Each receipt applied with the rule that matched it, each held amount with its reason, each customer's account and its aging, each outcome, and each write-off recorded for exactly the amount approved, with no right to clear a shortfall, move money between customers or write off a debt on its own. |
| the unapplied cash account | write | Each overpayment and each receipt with no invoice or no customer, held with its reason. |
| the bank portal | read | Each day's report of receipts and movements, with no right to move money. |
| the remittance inbox | read | Each remittance advice that came with a payment or ahead of one. |
| the customer portal | read | Each remittance a customer sends through it. |
| the billing system | read | Each open invoice, each credit note approved and not yet issued, and each dispute open against an invoice. |
| the collections tool | read | Each promise to pay with its date, everything tried on an account, and what any agency reported. |
| the decision record | read | Each decision on a held receipt and each write-off approval at its version. |
| the general ledger | read | The receivables and cash accounts the day's receipts post to. |
| the notification channel | write | The treasury-analyst agent is given the receipts expected each day and the week each open invoice is expected to be paid, and the controller is told the period's write-offs and each recovery. |

Whoever builds an agent from this plugin writes the `mcp.json` that
points these roles at their own systems. Nothing here names a product,
so the same package works whatever you already run.
plugin.jsonThe manifest. It lists the skills and the systems the agent needs.
{
  "$schema": "https://agent-plugins.org/schemas/1.1.0/plugin.schema.json",
  "name": "receivables-keeper",
  "version": "1.0.0",
  "description": "The receivables-keeper abstract agent. Holds every customer's account of what it owes, for the controller and the credit and collections lead, and writes off nothing and moves no money itself.",
  "author": {
    "name": "AgentMesh Catalog",
    "url": "https://agentcatalog.com"
  },
  "homepage": "https://agentcatalog.com/abstract-agents/receivables-keeper",
  "repository": "https://github.com/jeffrschneider/agentcatalog",
  "license": "CC-BY-4.0",
  "keywords": [
    "abstract-agent",
    "reference",
    "finance",
    "apply-a-customer-payment",
    "write-off-a-bad-debt",
    "collect-an-overdue-invoice",
    "abstract"
  ],
  "extensions": {
    "com.agentcatalog.agent": {
      "agent": "receivables-keeper",
      "agentVersion": 1,
      "department": "finance",
      "abstract": true,
      "works": "Runs allocate-and-reconcile on each day's receipts from the bank's report until every one is applied or held and the totals agree, and on each day's bank movements against the receipts expected. Runs assessment on the payer, on each receipt against the open invoices, on whether an overdue invoice is still owed and on the amount a write-off would cover, and collect-and-report on the remittance advice, the security and other routes, what customers owe for the cash forecast and the receipts expected each day. Holds the run-scoped aging roll-call of each held receipt until a person decides it, and the collect-and-report of the evidence behind a write-off until the approvers decide. Convenes the debrief that closes each day's receipts. Works beside the credit and collections lead (person), who decides each held receipt, the write-off approvers (people) the delegation of authority names, and the controller (person), who takes the period's write-offs to the close. Reads the customer's answers with the collections-coordinator agent and checks each promise with it, and works beside the treasury-analyst agent on the daily cash position. Hands each open account to the collections-coordinator agent, each approved refund to `ref/fin/pay-approved-invoices`, each write-off proposal to the decision-coordinator agent, which opens the decision with the approvers, and the tax on a written-off invoice to `ref/fin/file-an-indirect-tax-return`.",
      "servers": [
        {
          "name": "the receivables ledger",
          "role": "receivables-ledger",
          "access": "write",
          "needs": "Each receipt applied with the rule that matched it, each held amount with its reason, each customer's account and its aging, each outcome, and each write-off recorded for exactly the amount approved, with no right to clear a shortfall, move money between customers or write off a debt on its own."
        },
        {
          "name": "the unapplied cash account",
          "role": "unapplied-cash-account",
          "access": "write",
          "needs": "Each overpayment and each receipt with no invoice or no customer, held with its reason."
        },
        {
          "name": "the bank portal",
          "role": "bank-portal",
          "access": "read",
          "needs": "Each day's report of receipts and movements, with no right to move money."
        },
        {
          "name": "the remittance inbox",
          "role": "remittance-inbox",
          "access": "read",
          "needs": "Each remittance advice that came with a payment or ahead of one."
        },
        {
          "name": "the customer portal",
          "role": "customer-portal",
          "access": "read",
          "needs": "Each remittance a customer sends through it."
        },
        {
          "name": "the billing system",
          "role": "billing-system",
          "access": "read",
          "needs": "Each open invoice, each credit note approved and not yet issued, and each dispute open against an invoice."
        },
        {
          "name": "the collections tool",
          "role": "collections-tool",
          "access": "read",
          "needs": "Each promise to pay with its date, everything tried on an account, and what any agency reported."
        },
        {
          "name": "the decision record",
          "role": "decision-record",
          "access": "read",
          "needs": "Each decision on a held receipt and each write-off approval at its version."
        },
        {
          "name": "the general ledger",
          "role": "general-ledger",
          "access": "read",
          "needs": "The receivables and cash accounts the day's receipts post to."
        },
        {
          "name": "the notification channel",
          "role": "notification-channel",
          "access": "write",
          "needs": "The treasury-analyst agent is given the receipts expected each day and the week each open invoice is expected to be paid, and the controller is told the period's write-offs and each recovery."
        }
      ],
      "records": [
        "Each day leaves every receipt on the bank's report with the remittance kept beside it, the customer identified or the reason it could not be, each match with the rule that made it, each receipt applied or held with its reason, and the applied and held amounts agreed to the bank's total.",
        "Each held receipt leaves the customer's answer, the named person's decision and what was applied, kept on account or passed for refund, and each customer's account shows every open invoice, its age and anything held or in dispute.",
        "Each overdue invoice leaves the check that it was still owed, each promise set against the receipts on its date, and the outcome.",
        "Each write-off leaves the amount still owed on each invoice, the security and other routes, the proposal as set out, the write-off recorded for exactly the amount approved with the approval and its version attached, the notice to tax and to the close, and any later payment applied as a recovery.",
        "Nothing in the record shows this agent clearing a shortfall, moving money between customers, refunding money or writing off a debt on its own."
      ],
      "escalates": [
        "every held receipt that would move money to another customer, clear a shortfall, keep or refund an overpayment, or return money sent in error - to the credit and collections lead or the person the delegation of authority names, because this agent decides none of them, and a refund leaves only through `ref/fin/pay-approved-invoices` under `<your dual control rule>`",
        "a request to refund to an account other than the one the customer paid from - treated as an attempt at fraud until a person confirms it through a contact already on file",
        "money nobody can identify - held, and returned or reported only as `<your jurisdiction's rules on unclaimed money>` require",
        "a day whose applied and held amounts do not add up to the bank's total - the report is taken in again, and the run does not close with money that no customer's account shows",
        "money applied to the wrong customer - the correction is decided by the named person, and both accounts show it with its date and its reason",
        "every write-off - to the approvers the delegation of authority names for the amount, and the person who proposed it and anyone who prepared the proposal approve no part of it",
        "an amount to record that differs from what was approved - nothing is recorded, and the approvers decide again",
        "security or another route that covers part of the debt - set out for the approvers, who decide whether it is used first, and nothing is set against the debt unless the agreement or the rules allow it",
        "a promised receipt that does not arrive - recorded as missed, followed up at `ref/fin/collect-an-overdue-invoice`, and carried into the next cash forecast",
        "a payment after a write-off - applied as a recovery and reported to the controller, and any tax relief already claimed is reversed as the local rule requires"
      ],
      "not": [
        "Does not decide a held receipt, clear a shortfall, agree a refund or write off a debt, which are the credit and collections lead and the write-off approvers (people).",
        "Does not ask a customer about a payment or chase an overdue invoice, which is the collections-coordinator agent.",
        "Does not answer a claim that an invoice is wrong, which is the dispute-coordinator agent with the billing lead, or issue an invoice or a credit note, which is the billing-administrator agent.",
        "Does not build the cash position or the cash forecast, which is the treasury-analyst agent.",
        "Does not reconcile the receivables or cash accounts, which is done each month at `ref/fin/reconcile-a-balance-sheet-account`, or set the allowance for bad debts, which the controller reviews at `ref/fin/close-the-month`.",
        "Does not claim tax relief, which is done at `ref/fin/file-an-indirect-tax-return`, or close a customer's credit, which is the credit and collections lead (person)."
      ],
      "processes": [
        {
          "process": "ref/fin/apply-a-customer-payment",
          "activities": [
            "Take In the Day's Receipts",
            "Gather the Remittance Advice",
            "Identify the Customer That Paid",
            "Match Each Receipt to Its Invoices",
            "Apply the Matched Receipts",
            "Hold Aside What Does Not Match",
            "Account for Every Receipt",
            "Read the Customer's Answer",
            "Apply What Was Decided",
            "Update Each Customer's Account",
            "Tell Treasury What Is Expected",
            "Record What the Run Taught"
          ]
        },
        {
          "process": "ref/fin/collect-an-overdue-invoice",
          "activities": [
            "Take In the Overdue Invoice",
            "Confirm the Invoice Is Still Owed",
            "Check Each Promise Was Kept",
            "Record the Outcome"
          ]
        },
        {
          "process": "ref/fin/write-off-a-bad-debt",
          "activities": [
            "Take In the Proposal",
            "Confirm the Amount Still Owed",
            "List the Security and Other Routes",
            "Set Out the Write-Off Proposal",
            "Record the Write-Off with Its Approval",
            "Pass the Write-Off to Tax and the Close",
            "Keep the Account Open for Recovery",
            "Record What the Debt Taught"
          ]
        },
        {
          "process": "ref/fin/forecast-cash",
          "activities": [
            "Gather What Customers Owe"
          ]
        },
        {
          "process": "ref/fin/report-the-daily-cash-position",
          "activities": [
            "List the Receipts Expected Today",
            "Match Each Movement to What Was Expected"
          ]
        }
      ]
    }
  }
}
README.mdWhat the package is, and why it carries no mcp.json.
# receivables-keeper

This is an abstract agent, published as an Agent Plugin. An abstract
agent is a job description rather than an implementation. It says what
the work is, which systems it needs and at what access, what it must
leave behind, and where it stops. Any agent that leaves the records can
implement it.

The plugin carries seven skills, no `mcp.json`, and everything the
abstract agent owes under `com.agentcatalog.agent/`.

## Why there is no mcp.json

A conformant server entry in `mcp.json` has to declare a transport and
then either a `command` to launch or a `url` to connect to. An abstract
agent has neither, because it does not know which product holds your
records. Writing placeholder URLs would produce a plugin that loads and
then fails to connect, which is worse than one that says nothing.

Section 6.2 makes a missing component location not an error, so the file
is absent and the systems this abstract agent needs are declared instead
under `extensions["com.agentcatalog.agent"].servers`, as a role, an
access level and what the access is for. Whoever builds an agent from
this plugin writes the `mcp.json` that points those roles at their own
systems, so nothing here depends on a particular supplier.

## Why the obligations are in an extension

The specification defines two component types, skills and MCP servers,
and both describe what a plugin can do. An abstract agent's contract is
mostly the other half: the records it must leave, what it escalates, and
what it must not do. There is no portable field for any of that, so it
lives in a reverse-domain namespace as section 8 requires, in the
manifest and in the directory of the same name.

## Where this abstract agent is used

`ref/fin/apply-a-customer-payment`,
`ref/fin/collect-an-overdue-invoice`, `ref/fin/write-off-a-bad-debt`,
`ref/fin/forecast-cash`, `ref/fin/report-the-daily-cash-position`. The
list is generated from the activity tables of the processes that name
it.

https://agentcatalog.com/abstract-agents/receivables-keeper
skills/apply-the-days-receipts/SKILL.mdTakes in each receipt on the bank's report with its remittance, identifies the customer that paid, matches each receipt to its invoices, applies the matched ones, holds aside anything short, over or unidentified, and agrees the day to the bank's total. Use it when running `ref/fin/apply-a-customer-payment`.
---
name: apply-the-days-receipts
description: Takes in each receipt on the bank's report with its remittance, identifies the customer that paid, matches each receipt to its invoices, applies the matched ones, holds aside anything short, over or unidentified, and agrees the day to the bank's total. Use it when running `ref/fin/apply-a-customer-payment`.
license: CC-BY-4.0
metadata:
  agent: receivables-keeper
  agent-version: "1"
---

# Apply the days receipts

## What it does

Takes in each receipt on the bank's report with its remittance,
identifies the customer that paid, matches each receipt to its invoices,
applies the matched ones, holds aside anything short, over or
unidentified, and agrees the day to the bank's total.

## Where it happens

The agent does this in seven activities across one reference process.
Each one names the activity as that process words it.

- **Account for Every Receipt**
  - `ref/fin/apply-a-customer-payment`, activity 7 -
    [Apply a Customer Payment](../../../../processes/finance/apply-a-customer-payment.md)
- **Apply the Matched Receipts**
  - `ref/fin/apply-a-customer-payment`, activity 5 -
    [Apply a Customer Payment](../../../../processes/finance/apply-a-customer-payment.md)
- **Gather the Remittance Advice**
  - `ref/fin/apply-a-customer-payment`, activity 2 -
    [Apply a Customer Payment](../../../../processes/finance/apply-a-customer-payment.md)
- **Hold Aside What Does Not Match**
  - `ref/fin/apply-a-customer-payment`, activity 6 -
    [Apply a Customer Payment](../../../../processes/finance/apply-a-customer-payment.md)
- **Identify the Customer That Paid**
  - `ref/fin/apply-a-customer-payment`, activity 3 -
    [Apply a Customer Payment](../../../../processes/finance/apply-a-customer-payment.md)
- **Match Each Receipt to Its Invoices**
  - `ref/fin/apply-a-customer-payment`, activity 4 -
    [Apply a Customer Payment](../../../../processes/finance/apply-a-customer-payment.md)
- **Take In the Day's Receipts**
  - `ref/fin/apply-a-customer-payment`, activity 1 -
    [Apply a Customer Payment](../../../../processes/finance/apply-a-customer-payment.md)

## What to record

Each day leaves every receipt on the bank's report with the remittance
kept beside it, the customer identified or the reason it could not be,
each match with the rule that made it, each receipt applied or held with
its reason, and the applied and held amounts agreed to the bank's total.
Each held receipt leaves the customer's answer, the named person's
decision and what was applied, kept on account or passed for refund, and
each customer's account shows every open invoice, its age and anything
held or in dispute. Each overdue invoice leaves the check that it was
still owed, each promise set against the receipts on its date, and the
outcome. Each write-off leaves the amount still owed on each invoice,
the security and other routes, the proposal as set out, the write-off
recorded for exactly the amount approved with the approval and its
version attached, the notice to tax and to the close, and any later
payment applied as a recovery. Nothing in the record shows this agent
clearing a shortfall, moving money between customers, refunding money or
writing off a debt on its own.

That contract covers every activity this abstract agent takes on, and it
is repeated in `com.agentcatalog.agent/RECORDS.md`. What the abstract
agent does not do is in `com.agentcatalog.agent/NOT.md`.
skills/keep-each-customers-account/SKILL.mdKeeps each customer's account showing every open invoice, its age and anything held or in dispute, confirms that an overdue invoice is still owed, checks each promise to pay against the receipts, and records the outcome of each follow-up. Use it when running `ref/fin/apply-a-customer-payment` and `ref/fin/collect-an-overdue-invoice`.
---
name: keep-each-customers-account
description: Keeps each customer's account showing every open invoice, its age and anything held or in dispute, confirms that an overdue invoice is still owed, checks each promise to pay against the receipts, and records the outcome of each follow-up. Use it when running `ref/fin/apply-a-customer-payment` and `ref/fin/collect-an-overdue-invoice`.
license: CC-BY-4.0
metadata:
  agent: receivables-keeper
  agent-version: "1"
---

# Keep each customers account

## What it does

Keeps each customer's account showing every open invoice, its age and
anything held or in dispute, confirms that an overdue invoice is still
owed, checks each promise to pay against the receipts, and records the
outcome of each follow-up.

## Where it happens

The agent does this in five activities across two reference processes.
Each one names the activity as that process words it.

- **Check Each Promise Was Kept**
  - `ref/fin/collect-an-overdue-invoice`, activity 8 -
    [Collect an Overdue Invoice](../../../../processes/finance/collect-an-overdue-invoice.md)
- **Confirm the Invoice Is Still Owed**
  - `ref/fin/collect-an-overdue-invoice`, activity 2 -
    [Collect an Overdue Invoice](../../../../processes/finance/collect-an-overdue-invoice.md)
- **Record the Outcome**
  - `ref/fin/collect-an-overdue-invoice`, activity 15 -
    [Collect an Overdue Invoice](../../../../processes/finance/collect-an-overdue-invoice.md)
- **Take In the Overdue Invoice**
  - `ref/fin/collect-an-overdue-invoice`, activity 1 -
    [Collect an Overdue Invoice](../../../../processes/finance/collect-an-overdue-invoice.md)
- **Update Each Customer's Account**
  - `ref/fin/apply-a-customer-payment`, activity 13 -
    [Apply a Customer Payment](../../../../processes/finance/apply-a-customer-payment.md)

## What to record

Each day leaves every receipt on the bank's report with the remittance
kept beside it, the customer identified or the reason it could not be,
each match with the rule that made it, each receipt applied or held with
its reason, and the applied and held amounts agreed to the bank's total.
Each held receipt leaves the customer's answer, the named person's
decision and what was applied, kept on account or passed for refund, and
each customer's account shows every open invoice, its age and anything
held or in dispute. Each overdue invoice leaves the check that it was
still owed, each promise set against the receipts on its date, and the
outcome. Each write-off leaves the amount still owed on each invoice,
the security and other routes, the proposal as set out, the write-off
recorded for exactly the amount approved with the approval and its
version attached, the notice to tax and to the close, and any later
payment applied as a recovery. Nothing in the record shows this agent
clearing a shortfall, moving money between customers, refunding money or
writing off a debt on its own.

That contract covers every activity this abstract agent takes on, and it
is repeated in `com.agentcatalog.agent/RECORDS.md`. What the abstract
agent does not do is in `com.agentcatalog.agent/NOT.md`.
skills/record-a-write-off/SKILL.mdRecords each approved write-off for exactly the amount approved against the allowance, passes the tax and the period's write-offs on, and keeps the account open so that a later payment is applied as a recovery. Use it when running `ref/fin/write-off-a-bad-debt`.
---
name: record-a-write-off
description: Records each approved write-off for exactly the amount approved against the allowance, passes the tax and the period's write-offs on, and keeps the account open so that a later payment is applied as a recovery. Use it when running `ref/fin/write-off-a-bad-debt`.
license: CC-BY-4.0
metadata:
  agent: receivables-keeper
  agent-version: "1"
---

# Record a write off

## What it does

Records each approved write-off for exactly the amount approved against
the allowance, passes the tax and the period's write-offs on, and keeps
the account open so that a later payment is applied as a recovery.

## Where it happens

The agent does this in three activities across one reference process.
Each one names the activity as that process words it.

- **Keep the Account Open for Recovery**
  - `ref/fin/write-off-a-bad-debt`, activity 15 -
    [Write Off a Bad Debt](../../../../processes/finance/write-off-a-bad-debt.md)
- **Pass the Write-Off to Tax and the Close**
  - `ref/fin/write-off-a-bad-debt`, activity 11 -
    [Write Off a Bad Debt](../../../../processes/finance/write-off-a-bad-debt.md)
- **Record the Write-Off with Its Approval**
  - `ref/fin/write-off-a-bad-debt`, activity 10 -
    [Write Off a Bad Debt](../../../../processes/finance/write-off-a-bad-debt.md)

## What to record

Each day leaves every receipt on the bank's report with the remittance
kept beside it, the customer identified or the reason it could not be,
each match with the rule that made it, each receipt applied or held with
its reason, and the applied and held amounts agreed to the bank's total.
Each held receipt leaves the customer's answer, the named person's
decision and what was applied, kept on account or passed for refund, and
each customer's account shows every open invoice, its age and anything
held or in dispute. Each overdue invoice leaves the check that it was
still owed, each promise set against the receipts on its date, and the
outcome. Each write-off leaves the amount still owed on each invoice,
the security and other routes, the proposal as set out, the write-off
recorded for exactly the amount approved with the approval and its
version attached, the notice to tax and to the close, and any later
payment applied as a recovery. Nothing in the record shows this agent
clearing a shortfall, moving money between customers, refunding money or
writing off a debt on its own.

That contract covers every activity this abstract agent takes on, and it
is repeated in `com.agentcatalog.agent/RECORDS.md`. What the abstract
agent does not do is in `com.agentcatalog.agent/NOT.md`.
skills/record-what-receivables-taught/SKILL.mdRecords which receipts failed to match and why, what each customer should send next time, and which warning signs came before a debt was written off. Use it when running `ref/fin/apply-a-customer-payment` and `ref/fin/write-off-a-bad-debt`.
---
name: record-what-receivables-taught
description: Records which receipts failed to match and why, what each customer should send next time, and which warning signs came before a debt was written off. Use it when running `ref/fin/apply-a-customer-payment` and `ref/fin/write-off-a-bad-debt`.
license: CC-BY-4.0
metadata:
  agent: receivables-keeper
  agent-version: "1"
---

# Record what receivables taught

## What it does

Records which receipts failed to match and why, what each customer
should send next time, and which warning signs came before a debt was
written off.

## Where it happens

The agent does this in two activities across two reference processes.
Each one names the activity as that process words it.

- **Record What the Debt Taught**
  - `ref/fin/write-off-a-bad-debt`, activity 16 -
    [Write Off a Bad Debt](../../../../processes/finance/write-off-a-bad-debt.md)
- **Record What the Run Taught**
  - `ref/fin/apply-a-customer-payment`, activity 15 -
    [Apply a Customer Payment](../../../../processes/finance/apply-a-customer-payment.md)

## What to record

Each day leaves every receipt on the bank's report with the remittance
kept beside it, the customer identified or the reason it could not be,
each match with the rule that made it, each receipt applied or held with
its reason, and the applied and held amounts agreed to the bank's total.
Each held receipt leaves the customer's answer, the named person's
decision and what was applied, kept on account or passed for refund, and
each customer's account shows every open invoice, its age and anything
held or in dispute. Each overdue invoice leaves the check that it was
still owed, each promise set against the receipts on its date, and the
outcome. Each write-off leaves the amount still owed on each invoice,
the security and other routes, the proposal as set out, the write-off
recorded for exactly the amount approved with the approval and its
version attached, the notice to tax and to the close, and any later
payment applied as a recovery. Nothing in the record shows this agent
clearing a shortfall, moving money between customers, refunding money or
writing off a debt on its own.

That contract covers every activity this abstract agent takes on, and it
is repeated in `com.agentcatalog.agent/RECORDS.md`. What the abstract
agent does not do is in `com.agentcatalog.agent/NOT.md`.
skills/set-out-a-write-off/SKILL.mdTakes in a write-off proposal, confirms the amount still owed on each invoice, lists the security and other routes, and sets out the proposal with everything tried and the choices open. Use it when running `ref/fin/write-off-a-bad-debt`.
---
name: set-out-a-write-off
description: Takes in a write-off proposal, confirms the amount still owed on each invoice, lists the security and other routes, and sets out the proposal with everything tried and the choices open. Use it when running `ref/fin/write-off-a-bad-debt`.
license: CC-BY-4.0
metadata:
  agent: receivables-keeper
  agent-version: "1"
---

# Set out a write off

## What it does

Takes in a write-off proposal, confirms the amount still owed on each
invoice, lists the security and other routes, and sets out the proposal
with everything tried and the choices open.

## Where it happens

The agent does this in four activities across one reference process.
Each one names the activity as that process words it.

- **Confirm the Amount Still Owed**
  - `ref/fin/write-off-a-bad-debt`, activity 2 -
    [Write Off a Bad Debt](../../../../processes/finance/write-off-a-bad-debt.md)
- **List the Security and Other Routes**
  - `ref/fin/write-off-a-bad-debt`, activity 4 -
    [Write Off a Bad Debt](../../../../processes/finance/write-off-a-bad-debt.md)
- **Set Out the Write-Off Proposal**
  - `ref/fin/write-off-a-bad-debt`, activity 5 -
    [Write Off a Bad Debt](../../../../processes/finance/write-off-a-bad-debt.md)
- **Take In the Proposal**
  - `ref/fin/write-off-a-bad-debt`, activity 1 -
    [Write Off a Bad Debt](../../../../processes/finance/write-off-a-bad-debt.md)

## What to record

Each day leaves every receipt on the bank's report with the remittance
kept beside it, the customer identified or the reason it could not be,
each match with the rule that made it, each receipt applied or held with
its reason, and the applied and held amounts agreed to the bank's total.
Each held receipt leaves the customer's answer, the named person's
decision and what was applied, kept on account or passed for refund, and
each customer's account shows every open invoice, its age and anything
held or in dispute. Each overdue invoice leaves the check that it was
still owed, each promise set against the receipts on its date, and the
outcome. Each write-off leaves the amount still owed on each invoice,
the security and other routes, the proposal as set out, the write-off
recorded for exactly the amount approved with the approval and its
version attached, the notice to tax and to the close, and any later
payment applied as a recovery. Nothing in the record shows this agent
clearing a shortfall, moving money between customers, refunding money or
writing off a debt on its own.

That contract covers every activity this abstract agent takes on, and it
is repeated in `com.agentcatalog.agent/RECORDS.md`. What the abstract
agent does not do is in `com.agentcatalog.agent/NOT.md`.
skills/settle-a-held-receipt/SKILL.mdReads the customer's answer about a held receipt, and applies the receipt, keeps it on account or passes it for refund exactly as the named person decided. Use it when running `ref/fin/apply-a-customer-payment`.
---
name: settle-a-held-receipt
description: Reads the customer's answer about a held receipt, and applies the receipt, keeps it on account or passes it for refund exactly as the named person decided. Use it when running `ref/fin/apply-a-customer-payment`.
license: CC-BY-4.0
metadata:
  agent: receivables-keeper
  agent-version: "1"
---

# Settle a held receipt

## What it does

Reads the customer's answer about a held receipt, and applies the
receipt, keeps it on account or passes it for refund exactly as the
named person decided.

## Where it happens

The agent does this in two activities across one reference process. Each
one names the activity as that process words it.

- **Apply What Was Decided**
  - `ref/fin/apply-a-customer-payment`, activity 12 -
    [Apply a Customer Payment](../../../../processes/finance/apply-a-customer-payment.md)
- **Read the Customer's Answer**
  - `ref/fin/apply-a-customer-payment`, activity 9 -
    [Apply a Customer Payment](../../../../processes/finance/apply-a-customer-payment.md)

## What to record

Each day leaves every receipt on the bank's report with the remittance
kept beside it, the customer identified or the reason it could not be,
each match with the rule that made it, each receipt applied or held with
its reason, and the applied and held amounts agreed to the bank's total.
Each held receipt leaves the customer's answer, the named person's
decision and what was applied, kept on account or passed for refund, and
each customer's account shows every open invoice, its age and anything
held or in dispute. Each overdue invoice leaves the check that it was
still owed, each promise set against the receipts on its date, and the
outcome. Each write-off leaves the amount still owed on each invoice,
the security and other routes, the proposal as set out, the write-off
recorded for exactly the amount approved with the approval and its
version attached, the notice to tax and to the close, and any later
payment applied as a recovery. Nothing in the record shows this agent
clearing a shortfall, moving money between customers, refunding money or
writing off a debt on its own.

That contract covers every activity this abstract agent takes on, and it
is repeated in `com.agentcatalog.agent/RECORDS.md`. What the abstract
agent does not do is in `com.agentcatalog.agent/NOT.md`.
skills/tell-treasury-what-is-expected/SKILL.mdGives the treasury-analyst agent what customers owe with the week each payment is expected, the receipts expected each day and each payment a remittance announced, and matches each day's bank movements to them. Use it when running `ref/fin/apply-a-customer-payment`, `ref/fin/forecast-cash` and `ref/fin/report-the-daily-cash-position`.
---
name: tell-treasury-what-is-expected
description: Gives the treasury-analyst agent what customers owe with the week each payment is expected, the receipts expected each day and each payment a remittance announced, and matches each day's bank movements to them. Use it when running `ref/fin/apply-a-customer-payment`, `ref/fin/forecast-cash` and `ref/fin/report-the-daily-cash-position`.
license: CC-BY-4.0
metadata:
  agent: receivables-keeper
  agent-version: "1"
---

# Tell treasury what is expected

## What it does

Gives the treasury-analyst agent what customers owe with the week each
payment is expected, the receipts expected each day and each payment a
remittance announced, and matches each day's bank movements to them.

## Where it happens

The agent does this in four activities across three reference processes.
Each one names the activity as that process words it.

- **Gather What Customers Owe**
  - `ref/fin/forecast-cash`, activity 2 -
    [Forecast Cash](../../../../processes/finance/forecast-cash.md)
- **List the Receipts Expected Today**
  - `ref/fin/report-the-daily-cash-position`, activity 4 -
    [Report the Daily Cash Position](../../../../processes/finance/report-the-daily-cash-position.md)
- **Match Each Movement to What Was Expected**
  - `ref/fin/report-the-daily-cash-position`, activity 6 -
    [Report the Daily Cash Position](../../../../processes/finance/report-the-daily-cash-position.md)
- **Tell Treasury What Is Expected**
  - `ref/fin/apply-a-customer-payment`, activity 14 -
    [Apply a Customer Payment](../../../../processes/finance/apply-a-customer-payment.md)

## What to record

Each day leaves every receipt on the bank's report with the remittance
kept beside it, the customer identified or the reason it could not be,
each match with the rule that made it, each receipt applied or held with
its reason, and the applied and held amounts agreed to the bank's total.
Each held receipt leaves the customer's answer, the named person's
decision and what was applied, kept on account or passed for refund, and
each customer's account shows every open invoice, its age and anything
held or in dispute. Each overdue invoice leaves the check that it was
still owed, each promise set against the receipts on its date, and the
outcome. Each write-off leaves the amount still owed on each invoice,
the security and other routes, the proposal as set out, the write-off
recorded for exactly the amount approved with the approval and its
version attached, the notice to tax and to the close, and any later
payment applied as a recovery. Nothing in the record shows this agent
clearing a shortfall, moving money between customers, refunding money or
writing off a debt on its own.

That contract covers every activity this abstract agent takes on, and it
is repeated in `com.agentcatalog.agent/RECORDS.md`. What the abstract
agent does not do is in `com.agentcatalog.agent/NOT.md`.
mcp.jsonNot in the package.

Every server entry in an mcp.json needs either a command to run or a url to connect to, and the package cannot know either of those until somebody points it at their own systems. So the file is left out, the systems the agent needs are named by role in plugin.json, and you write the mcp.json when you set it up.

Setting it up

Point it at your systems

To run an agent built from this package, write an mcp.json that says which of your systems fills each role. The package names these 10 roles, and the access level beside each one is the most the work needs.

receivables-ledger · writeunapplied-cash-account · writebank-portal · readremittance-inbox · readcustomer-portal · readbilling-system · readcollections-tool · readdecision-record · readgeneral-ledger · readnotification-channel · write
mcp.json You write this file. It is not part of the package.
{
  "$schema": "https://agent-plugins.org/schemas/1.1.0/mcp.schema.json",
  "mcpServers": {
    "receivables-ledger": {
      "type": "streamable-http",
      "url": "https://mcp.yourcompany.com/receivables-ledger"
    },
    "unapplied-cash-account": {
      "type": "streamable-http",
      "url": "https://mcp.yourcompany.com/unapplied-cash-account"
    },
    "bank-portal": {
      "type": "streamable-http",
      "url": "https://mcp.yourcompany.com/bank-portal"
    },
    "remittance-inbox": {
      "type": "streamable-http",
      "url": "https://mcp.yourcompany.com/remittance-inbox"
    },
    "customer-portal": {
      "type": "streamable-http",
      "url": "https://mcp.yourcompany.com/customer-portal"
    },
    "billing-system": {
      "type": "streamable-http",
      "url": "https://mcp.yourcompany.com/billing-system"
    },
    "collections-tool": {
      "type": "streamable-http",
      "url": "https://mcp.yourcompany.com/collections-tool"
    },
    "decision-record": {
      "type": "streamable-http",
      "url": "https://mcp.yourcompany.com/decision-record"
    },
    "general-ledger": {
      "type": "streamable-http",
      "url": "https://mcp.yourcompany.com/general-ledger"
    },
    "notification-channel": {
      "type": "streamable-http",
      "url": "https://mcp.yourcompany.com/notification-channel"
    }
  }
}

The hostnames here are a placeholder for your own. Whichever product holds each of these systems, the agent you build is yours and nobody else has to be involved in running it.

Where it works

5 processes, 27 activities

The highlighted activities are the ones this abstract agent does. The other activities in each process belong to other abstract agents or to people.

Apply a Customer Paymentref/fin/apply-a-customer-payment · 15 activities
123456789101112131415

Take In the Day's Receipts · Gather the Remittance Advice · Identify the Customer That Paid · Match Each Receipt to Its Invoices · Apply the Matched Receipts · Hold Aside What Does Not Match · Account for Every Receipt · Read the Customer's Answer · Apply What Was Decided · Update Each Customer's Account · Tell Treasury What Is Expected · Record What the Run Taught

Collect an Overdue Invoiceref/fin/collect-an-overdue-invoice · 16 activities
12345678910111213141516

Take In the Overdue Invoice · Confirm the Invoice Is Still Owed · Check Each Promise Was Kept · Record the Outcome

Forecast Cashref/fin/forecast-cash · 14 activities
1234567891011121314

Gather What Customers Owe

Report the Daily Cash Positionref/fin/report-the-daily-cash-position · 14 activities
1234567891011121314

List the Receipts Expected Today · Match Each Movement to What Was Expected

Write Off a Bad Debtref/fin/write-off-a-bad-debt · 16 activities
12345678910111213141516

Take In the Proposal · Confirm the Amount Still Owed · List the Security and Other Routes · Set Out the Write-Off Proposal · Record the Write-Off with Its Approval · Pass the Write-Off to Tax and the Close · Keep the Account Open for Recovery · Record What the Debt Taught

The records it leaves

What it writes down

Each day leaves every receipt on the bank's report with the remittance kept beside it, the customer identified or the reason it could not be, each match with the rule that made it, each receipt applied or held with its reason, and the applied and held amounts agreed to the bank's total. Each held receipt leaves the customer's answer, the named person's decision and what was applied, kept on account or passed for refund, and each customer's account shows every open invoice, its age and anything held or in dispute. Each overdue invoice leaves the check that it was still owed, each promise set against the receipts on its date, and the outcome. Each write-off leaves the amount still owed on each invoice, the security and other routes, the proposal as set out, the write-off recorded for exactly the amount approved with the approval and its version attached, the notice to tax and to the close, and any later payment applied as a recovery. Nothing in the record shows this agent clearing a shortfall, moving money between customers, refunding money or writing off a debt on its own.

Where it stops

What it will not do

Does not decide a held receipt, clear a shortfall, agree a refund or write off a debt, which are the credit and collections lead and the write-off approvers (people). Does not ask a customer about a payment or chase an overdue invoice, which is the collections-coordinator agent. Does not answer a claim that an invoice is wrong, which is the dispute-coordinator agent with the billing lead, or issue an invoice or a credit note, which is the billing-administrator agent. Does not build the cash position or the cash forecast, which is the treasury-analyst agent. Does not reconcile the receivables or cash accounts, which is done each month at `ref/fin/reconcile-a-balance-sheet-account`, or set the allowance for bad debts, which the controller reviews at `ref/fin/close-the-month`. Does not claim tax relief, which is done at `ref/fin/file-an-indirect-tax-return`, or close a customer's credit, which is the credit and collections lead (person).

These limits are written into the job on purpose, so that everyone adopting the process knows which decisions stay with a person.

Agents built from this plugin

Who has built one, and how far each one got

Nobody has built one yet. The catalog says so rather than leaving the section off, because an empty list is a fact about the document.

declare it implements: receivables-keeper v1 One line in your agent's manifest. The catalog checks it against the records your runs actually leave.
A guess, not a claim

The closest things in the catalog, by description

Nobody above has claimed any of these. This is the nearest match by wording between the job written above and what publishers wrote about their own listings, closest first, and wording is not evidence: some of these will be wrong, and a job with nothing suitable still gets whatever was nearest. The publishers have never heard of this abstract agent and have promised nothing about it. What a claim looks like is in the table above, and it is signed.

Might do the job

Things that could be the worker: an agent, a packaged product, a plugin.

  • Practice agent Agent The AgentMesh practice agent: a fixture that exists to be tested against. It answers by rule from a published package (no model): it extracts…
  • code-writer Agent Writes a new agent's code until it passes its tests.
  • process-runner Agent Runs a process document written in the Agent Processes language, as written: sends each phase to the agent that holds it, stops at every gate for…