← Files MercuryARCHIVED FILE

skills/mercury-mcp/references/spend-review.md

3.57 KB · Oct 5, 2026 · 18:05 UTC

↓ Download file

# Mercury Spend Review

Build a read-only spend report that a finance owner can verify and act on.

Use the shared controls already loaded. In `spend-review-rules.md`, read only the rules for the requested checks and materiality.

## Set the period

Use the user-provided period. If the user does not provide one, use the last three complete calendar months. Use the current date supplied by the host.

Retrieve the immediately preceding equal-length period only when the user asks for a comparison, trend, increase, or new vendor. Do not retrieve a comparison period for a review limited to recurring charges, duplicate candidates, concentration, categories, or transactions in the review period.

Use all active accounts unless the user selects accounts. Keep currencies separate. If the MCP does not return an account currency code, use the label required by the shared skill.

## Retrieve complete data

Inspect the live schemas. Use the live account-list tool to resolve the account population. Use the live transaction-list tool for the review period and any required comparison period.

Use posted-date filters and the settled or sent status when the live schema supports them. Follow the live transaction pagination, truncation, and call-limit rules. Do not request field selection when the schema does not support it.

Use category tools only when category data is required and absent, or when the user asks for category definitions. Use a transaction-detail tool only for a material item that lacks required evidence.

## Prepare and verify the data

Create a minimized transaction table. Remove sensitive account fields before calculation. Exclude failed, cancelled, reversed, and blocked activity. Exclude only confirmed internal transfers. Keep possible internal transfers in the primary totals and show a sensitivity result when they are material.

Report the page count, transaction count, account count, exact filters, returned date range, status counts, missing rates, and exclusion reconciliation.

## Calculate with code

Use exact programmatic arithmetic. Calculate only the measures required for the request. Available measures include:

- external outflow as a positive value;
- monthly outflow and month-over-month change;
- category and normalized-counterparty totals;
- transaction count, median, and largest transaction;
- top 5 and top 10 counterparty shares.

Keep the returned transaction sign in the evidence table. Show the denominator for each share and change.

## Build the review queue

Apply only the parts of `spend-review-rules.md` needed for the request. For a general spend review, include material recurring patterns, possible duplicates, and outliers. Detect vendor increases and new material counterparties only when a comparison period is in scope.

Cite abbreviated transaction IDs. State the rule and confidence for each item. A recurring charge is not proof of an unwanted subscription.

## Estimate the opportunity

Estimate opportunity only when the user asks for savings or when a material review candidate has bounded exposure. Show identified exposure before estimated savings. Do not count one transaction in more than one exposure amount.

Annualized recurring cost is exposure, not recoverable savings. Use a savings estimate only when the user gives a reduction assumption or the evidence supports a bounded possible-duplicate amount. State each assumption.

## Deliver the report

Lead with up to five material findings. Include only the scope, data quality, spend summary, review queue, opportunity, human checks, and limits needed to support the answer.

Do not modify transactions or categories.

SHA-256: d4cd75aff9dc0e39564ce10cbab1efec464894f2f60c456cc4a3d338c7ffda44