Expense check
expense-check v1Checks each expense claim and each company card transaction against the expense policy at its version, for the managers who approve them and the travel and expense lead, and approves and pays nothing itself. It takes in each claim with each line's receipt, business reason and cost center, and sets every line or transaction against its receipt, its business reason and the limit for its kind, converting another currency at the rate the policy sets and working out miles or a daily allowance at the policy's rates. It sets each one against the claims already made, the card transactions and the travel bookings in the expense record, so the same spend is never paid twice, and marks any part of a claim that `<your jurisdiction's rules>` treat as pay. It returns each line as inside the policy, outside it with the rule it breaks, or missing its evidence, asks the employee for a missing receipt or reason, and reminds a manager who has not decided on the cadence the policy sets. Every line outside the policy goes to a named person. The point of the job is that each manager decides with the evidence in front of them, and no line is paid twice or paid outside the policy without a person's written approval.
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.
Runs assessment on every line of a claim and every card transaction against its receipt, its business reason and the limit for its kind, on each one against the spend already claimed, charged on a card or booked through travel, and on each line the rules treat as pay. Holds the run-scoped approvals roll-call of each claim from its arrival until every line outside the policy is decided, reminding the manager on the cadence the policy sets. Convenes the debrief that closes each claim. Sits in the approval where the employee's or the holder's manager (person) approves each line inside the policy with this agent's result beside it, and works beside the travel and expense lead (person), who approves or refuses each line outside the policy in writing, and the employee (person), who supplies what is missing. Takes each card transaction from the card-administrator agent and each booking's cost from the travel-coordinator agent, and hands each approved claim to the payables-processor agent to code, propose for payment and pass any part treated as pay to payroll.
What is in the package
4 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.
# Where this abstract agent stops Does not approve, refuse or pay a line, which are the manager and the travel and expense lead (people), with the payment approved and released at `ref/fin/pay-approved-invoices`. Does not code a claim, propose it for payment or pass any part to payroll, which is the payables-processor agent. Does not take in a card statement, chase a missing receipt or reconcile the card account, which is the card-administrator agent. Does not book travel, which is the travel-coordinator agent. Does not recover money paid wrongly, which the travel and expense lead decides under the policy and the local rule on deductions from pay. Does not set the expense policy or its limits, which are published at `ref/fin/publish-a-finance-policy`. ## What always goes to a person - every line and every transaction - to the employee's or the holder's manager, who approves each line inside the policy, and nobody approves their own claim or the claim of a person they report to, because this agent approves nothing - every line outside the policy - to the travel and expense lead, who approves or refuses it in writing, and the rest of the claim goes on - a receipt that is missing or lost - the employee is asked for it, a lost receipt is replaced only by the signed statement the policy allows up to the amount it sets, and a line with neither is outside the policy - a line that repeats spend already claimed, charged on a card or booked through travel - the earlier one is named, the employee explains or takes the line out, and it is never paid on the chance that it is different - a manager who does not decide in time - reminded on the cadence the policy sets, and after `<days>` the claim goes to the person the policy names to stand in - a claim by the chief executive - to the role the delegation of authority names to approve it - a part of a claim treated as pay - paid through payroll and never as an expense
# The records this abstract agent must leave
This is the contract. An agent implementing `expense-check` leaves the
following behind, on every run.
Each claim and each card transaction leaves every line with its receipt,
its business reason, its amount and currency, the rate it was converted
at, and the policy rule and version it was read against, returned as
inside the policy, outside it with the rule it breaks, or missing its
evidence. Beside each line sit any earlier claim, card transaction or
booking it repeats, any part marked as treated as pay with the rule
behind it, each question asked of the employee with the answer, and each
reminder sent to the manager. Each claim closes with which lines were
outside the policy and why, which rules caught most and how long the
claim took. Nothing in the record shows this agent approving, refusing
or paying a line.
An agent that leaves less than this does not implement `expense-check`,
whatever else it does well.
# The systems this abstract agent needs
Four 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 expense tool | write | Each line's result against the policy, any part treated as pay, and each question to the employee, with no right to approve, refuse or pay a line. |
| the HR system | read | The manager named to approve each employee's claims and each holder's transactions. |
| the card register | read | Each card's merchant rules, which each transaction is read against. |
| the notification channel | write | The employee is asked for a missing receipt or reason, and a manager who has not decided is reminded. |
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.
{
"$schema": "https://agent-plugins.org/schemas/1.1.0/plugin.schema.json",
"name": "expense-check",
"version": "1.0.0",
"description": "The expense-check abstract agent. Checks each expense claim and each company card transaction against the expense policy at its version, for the managers who approve them and the travel and expense lead, and approves and pays nothing itself.",
"author": {
"name": "AgentMesh Catalog",
"url": "https://agentcatalog.com"
},
"homepage": "https://agentcatalog.com/abstract-agents/expense-check",
"repository": "https://github.com/jeffrschneider/agentcatalog",
"license": "CC-BY-4.0",
"keywords": [
"abstract-agent",
"reference",
"finance",
"reimburse-an-expense-claim",
"reconcile-company-card-spend",
"abstract"
],
"extensions": {
"com.agentcatalog.agent": {
"agent": "expense-check",
"agentVersion": 1,
"department": "finance",
"abstract": true,
"works": "Runs assessment on every line of a claim and every card transaction against its receipt, its business reason and the limit for its kind, on each one against the spend already claimed, charged on a card or booked through travel, and on each line the rules treat as pay. Holds the run-scoped approvals roll-call of each claim from its arrival until every line outside the policy is decided, reminding the manager on the cadence the policy sets. Convenes the debrief that closes each claim. Sits in the approval where the employee's or the holder's manager (person) approves each line inside the policy with this agent's result beside it, and works beside the travel and expense lead (person), who approves or refuses each line outside the policy in writing, and the employee (person), who supplies what is missing. Takes each card transaction from the card-administrator agent and each booking's cost from the travel-coordinator agent, and hands each approved claim to the payables-processor agent to code, propose for payment and pass any part treated as pay to payroll.",
"servers": [
{
"name": "the expense tool",
"role": "expense-tool",
"access": "write",
"needs": "Each line's result against the policy, any part treated as pay, and each question to the employee, with no right to approve, refuse or pay a line."
},
{
"name": "the HR system",
"role": "hr-system",
"access": "read",
"needs": "The manager named to approve each employee's claims and each holder's transactions."
},
{
"name": "the card register",
"role": "card-register",
"access": "read",
"needs": "Each card's merchant rules, which each transaction is read against."
},
{
"name": "the notification channel",
"role": "notification-channel",
"access": "write",
"needs": "The employee is asked for a missing receipt or reason, and a manager who has not decided is reminded."
}
],
"records": [
"Each claim and each card transaction leaves every line with its receipt, its business reason, its amount and currency, the rate it was converted at, and the policy rule and version it was read against, returned as inside the policy, outside it with the rule it breaks, or missing its evidence.",
"Beside each line sit any earlier claim, card transaction or booking it repeats, any part marked as treated as pay with the rule behind it, each question asked of the employee with the answer, and each reminder sent to the manager.",
"Each claim closes with which lines were outside the policy and why, which rules caught most and how long the claim took.",
"Nothing in the record shows this agent approving, refusing or paying a line."
],
"escalates": [
"every line and every transaction - to the employee's or the holder's manager, who approves each line inside the policy, and nobody approves their own claim or the claim of a person they report to, because this agent approves nothing",
"every line outside the policy - to the travel and expense lead, who approves or refuses it in writing, and the rest of the claim goes on",
"a receipt that is missing or lost - the employee is asked for it, a lost receipt is replaced only by the signed statement the policy allows up to the amount it sets, and a line with neither is outside the policy",
"a line that repeats spend already claimed, charged on a card or booked through travel - the earlier one is named, the employee explains or takes the line out, and it is never paid on the chance that it is different",
"a manager who does not decide in time - reminded on the cadence the policy sets, and after `<days>` the claim goes to the person the policy names to stand in",
"a claim by the chief executive - to the role the delegation of authority names to approve it",
"a part of a claim treated as pay - paid through payroll and never as an expense"
],
"not": [
"Does not approve, refuse or pay a line, which are the manager and the travel and expense lead (people), with the payment approved and released at `ref/fin/pay-approved-invoices`.",
"Does not code a claim, propose it for payment or pass any part to payroll, which is the payables-processor agent.",
"Does not take in a card statement, chase a missing receipt or reconcile the card account, which is the card-administrator agent.",
"Does not book travel, which is the travel-coordinator agent.",
"Does not recover money paid wrongly, which the travel and expense lead decides under the policy and the local rule on deductions from pay.",
"Does not set the expense policy or its limits, which are published at `ref/fin/publish-a-finance-policy`."
],
"processes": [
{
"process": "ref/fin/reimburse-an-expense-claim",
"activities": [
"Take In the Claim",
"Check Each Line Against the Policy",
"Check for Spend Claimed Before",
"Mark the Part Treated as Pay",
"Ask the Employee About a Line",
"Record What the Claim Taught"
]
},
{
"process": "ref/fin/reconcile-company-card-spend",
"activities": [
"Check Each Transaction Against the Policy",
"Check for Spend Claimed Before"
]
}
]
}
}
}
# expense-check 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 four 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/reimburse-an-expense-claim`, `ref/fin/reconcile-company-card-spend`. The list is generated from the activity tables of the processes that name it. https://agentcatalog.com/abstract-agents/expense-check
--- name: check-against-the-policy description: Takes in each claim, and sets every line and every card transaction against its receipt, its business reason and the limit for its kind, returning each as inside the policy, outside it with the rule it breaks, or missing its evidence. Use it when running `ref/fin/reconcile-company-card-spend` and `ref/fin/reimburse-an-expense-claim`. license: CC-BY-4.0 metadata: agent: expense-check agent-version: "1" --- # Check against the policy ## What it does Takes in each claim, and sets every line and every card transaction against its receipt, its business reason and the limit for its kind, returning each as inside the policy, outside it with the rule it breaks, or missing its evidence. ## Where it happens The agent does this in three activities across two reference processes. Each one names the activity as that process words it. - **Check Each Line Against the Policy** - `ref/fin/reimburse-an-expense-claim`, activity 2 - [Reimburse an Expense Claim](../../../../processes/finance/reimburse-an-expense-claim.md) - **Check Each Transaction Against the Policy** - `ref/fin/reconcile-company-card-spend`, activity 5 - [Reconcile Company Card Spend](../../../../processes/finance/reconcile-company-card-spend.md) - **Take In the Claim** - `ref/fin/reimburse-an-expense-claim`, activity 1 - [Reimburse an Expense Claim](../../../../processes/finance/reimburse-an-expense-claim.md) ## What to record Each claim and each card transaction leaves every line with its receipt, its business reason, its amount and currency, the rate it was converted at, and the policy rule and version it was read against, returned as inside the policy, outside it with the rule it breaks, or missing its evidence. Beside each line sit any earlier claim, card transaction or booking it repeats, any part marked as treated as pay with the rule behind it, each question asked of the employee with the answer, and each reminder sent to the manager. Each claim closes with which lines were outside the policy and why, which rules caught most and how long the claim took. Nothing in the record shows this agent approving, refusing or paying a line. 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`.
--- name: find-spend-claimed-before description: Sets each line or transaction against the claims already made, the card transactions and the travel bookings in the expense record, and names any earlier one it repeats. Use it when running `ref/fin/reconcile-company-card-spend` and `ref/fin/reimburse-an-expense-claim`. license: CC-BY-4.0 metadata: agent: expense-check agent-version: "1" --- # Find spend claimed before ## What it does Sets each line or transaction against the claims already made, the card transactions and the travel bookings in the expense record, and names any earlier one it repeats. ## Where it happens The agent does this in one activity across two reference processes. Each one names the activity as that process words it. - **Check for Spend Claimed Before** - `ref/fin/reconcile-company-card-spend`, activity 6 - [Reconcile Company Card Spend](../../../../processes/finance/reconcile-company-card-spend.md) - `ref/fin/reimburse-an-expense-claim`, activity 3 - [Reimburse an Expense Claim](../../../../processes/finance/reimburse-an-expense-claim.md) ## What to record Each claim and each card transaction leaves every line with its receipt, its business reason, its amount and currency, the rate it was converted at, and the policy rule and version it was read against, returned as inside the policy, outside it with the rule it breaks, or missing its evidence. Beside each line sit any earlier claim, card transaction or booking it repeats, any part marked as treated as pay with the rule behind it, each question asked of the employee with the answer, and each reminder sent to the manager. Each claim closes with which lines were outside the policy and why, which rules caught most and how long the claim took. Nothing in the record shows this agent approving, refusing or paying a line. 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`.
--- name: follow-up-with-the-employee description: Asks the employee for each missing receipt or reason, or about a line that repeats earlier spend, and records what each claim taught. Use it when running `ref/fin/reimburse-an-expense-claim`. license: CC-BY-4.0 metadata: agent: expense-check agent-version: "1" --- # Follow up with the employee ## What it does Asks the employee for each missing receipt or reason, or about a line that repeats earlier spend, and records what each claim taught. ## Where it happens The agent does this in two activities across one reference process. Each one names the activity as that process words it. - **Ask the Employee About a Line** - `ref/fin/reimburse-an-expense-claim`, activity 5 - [Reimburse an Expense Claim](../../../../processes/finance/reimburse-an-expense-claim.md) - **Record What the Claim Taught** - `ref/fin/reimburse-an-expense-claim`, activity 13 - [Reimburse an Expense Claim](../../../../processes/finance/reimburse-an-expense-claim.md) ## What to record Each claim and each card transaction leaves every line with its receipt, its business reason, its amount and currency, the rate it was converted at, and the policy rule and version it was read against, returned as inside the policy, outside it with the rule it breaks, or missing its evidence. Beside each line sit any earlier claim, card transaction or booking it repeats, any part marked as treated as pay with the rule behind it, each question asked of the employee with the answer, and each reminder sent to the manager. Each claim closes with which lines were outside the policy and why, which rules caught most and how long the claim took. Nothing in the record shows this agent approving, refusing or paying a line. 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`.
--- name: mark-the-part-treated-as-pay description: Marks each line the local rules treat as pay, such as an allowance above the rate those rules allow, with the part treated as pay. Use it when running `ref/fin/reimburse-an-expense-claim`. license: CC-BY-4.0 metadata: agent: expense-check agent-version: "1" --- # Mark the part treated as pay ## What it does Marks each line the local rules treat as pay, such as an allowance above the rate those rules allow, with the part treated as pay. ## Where it happens The agent does this in one activity across one reference process. Each one names the activity as that process words it. - **Mark the Part Treated as Pay** - `ref/fin/reimburse-an-expense-claim`, activity 4 - [Reimburse an Expense Claim](../../../../processes/finance/reimburse-an-expense-claim.md) ## What to record Each claim and each card transaction leaves every line with its receipt, its business reason, its amount and currency, the rate it was converted at, and the policy rule and version it was read against, returned as inside the policy, outside it with the rule it breaks, or missing its evidence. Beside each line sit any earlier claim, card transaction or booking it repeats, any part marked as treated as pay with the rule behind it, each question asked of the employee with the answer, and each reminder sent to the manager. Each claim closes with which lines were outside the policy and why, which rules caught most and how long the claim took. Nothing in the record shows this agent approving, refusing or paying a line. 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`.
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.
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 4 roles, and the access level beside each one is the most the work needs.
{
"$schema": "https://agent-plugins.org/schemas/1.1.0/mcp.schema.json",
"mcpServers": {
"expense-tool": {
"type": "streamable-http",
"url": "https://mcp.yourcompany.com/expense-tool"
},
"hr-system": {
"type": "streamable-http",
"url": "https://mcp.yourcompany.com/hr-system"
},
"card-register": {
"type": "streamable-http",
"url": "https://mcp.yourcompany.com/card-register"
},
"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.
2 processes, 8 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.
Check Each Transaction Against the Policy · Check for Spend Claimed Before
Take In the Claim · Check Each Line Against the Policy · Check for Spend Claimed Before · Mark the Part Treated as Pay · Ask the Employee About a Line · Record What the Claim Taught
What it writes down
Each claim and each card transaction leaves every line with its receipt, its business reason, its amount and currency, the rate it was converted at, and the policy rule and version it was read against, returned as inside the policy, outside it with the rule it breaks, or missing its evidence. Beside each line sit any earlier claim, card transaction or booking it repeats, any part marked as treated as pay with the rule behind it, each question asked of the employee with the answer, and each reminder sent to the manager. Each claim closes with which lines were outside the policy and why, which rules caught most and how long the claim took. Nothing in the record shows this agent approving, refusing or paying a line.
What it will not do
Does not approve, refuse or pay a line, which are the manager and the travel and expense lead (people), with the payment approved and released at `ref/fin/pay-approved-invoices`. Does not code a claim, propose it for payment or pass any part to payroll, which is the payables-processor agent. Does not take in a card statement, chase a missing receipt or reconcile the card account, which is the card-administrator agent. Does not book travel, which is the travel-coordinator agent. Does not recover money paid wrongly, which the travel and expense lead decides under the policy and the local rule on deductions from pay. Does not set the expense policy or its limits, which are published at `ref/fin/publish-a-finance-policy`.
These limits are written into the job on purpose, so that everyone adopting the process knows which decisions stay with a person.
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.
implements: expense-check v1
One line in your agent's manifest. The catalog checks it against the records your runs actually leave.
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.
Things that could be the worker: an agent, a packaged product, a plugin.
- incident-recorder Agent Writes a timeline of what happened when an agent went quiet or failed, saying what is known and what is not. It never restarts or changes anything,…
- incident-recorder-proof Agent This agent is designed to record incidents or manage steps in a workflow. It processes individual work steps, taking in contracts and deliverables,…
- publisher Agent Publishes files you hand it at an address a person can open. It reads each address back and gives you the digest of what is served, so you can check…