Originally published on michael-kaminski.io.

In 30 seconds

  • What: goodwill-mcp, an open-source MCP server that turns donation receipts into Form 8283 rows. 854 lines of TypeScript, zero model calls inside it.
  • The split: the host model reads the photos; code owns every price, threshold and total. Measured: 2 ms warm against a 50 ms budget.
  • The catch: validation checks shape, not truth. One defaulted flag moves the same 450 blouses from $900 to $5,400, across the $5,000 appraisal line.
  • Still missing: the eval for the model half. It is specified and not built.

On 2026-11-11 I shipped an MCP server that reads thrift-store donation receipts, prices every item, and writes Form 8283 rows. It makes zero model calls. The same 450 blouses come out at $900, $3,150 or $5,400 depending on one three-letter flag the model is told to default.

The conclusion first: cut an agent in half at the line where probability ends, put every dollar of arithmetic on the deterministic side, and then admit that a validator checks the shape of the model's answer, not its truth. The cut is the easy part. Knowing what it does not buy you is the part that keeps you out of trouble.

The project is goodwill-mcp, open source, MIT, v0.1.0. Claude reads the receipt and item photos. The server validates the draft, prices from a published guide, stores one SQLite file on your machine and produces the year-end rows. I wrote the contract; the code, tests and release pipeline were built with Claude Code against it in one session. Every number below was re-measured on 2026-11-15 from a fresh clone.

The cut: 854 lines of TypeScript, no model inside

The server is 854 lines across nine TypeScript files. A grep for anthropic, openai or fetch( across src/ returns 0 hits. The model that reads the photos is the host's model, the one already running the chat. The server never pays for a token and never waits on one.

The tax rules live in one 59-line file, rules.ts, with four threshold constants and five small pure functions. Form 8283 is required when the year's noncash total is over $500. A qualified appraisal is required when one group of similar items is over $5,000 in a year, with a warning at $4,000. A single donation of $250 or more needs the charity's written acknowledgment. Items below good used condition are excluded.

Those four thresholds are the whole reason the split exists. A model should never be the thing deciding whether a line crossed $5,000. A constant should.

The price guide is data, not code: 49 clothing categories from the ranges Goodwill Industries International publishes for items commonly sold in its stores, 18 women's, 16 children's, 15 men's. Women's blouses are $2 to $12. Women's jeans are $4 to $21. Men's coats are $7 to $40. Another charity is one more JSON file.

What the split costs in latency: almost nothing

The proposal set budgets before the code existed, so this is the first time I have checked them. Over the MCP stdio path, donation_create took 17 ms on the first call, which includes opening the database and running migrations, then 2 ms and 1 ms. donation_report took 2 ms. The budget was 50 ms at p95.

From the command line, which pays Node's startup each time, --help ran in a median of 149 ms over seven runs, against a 300 ms budget. A full donation create on a fresh database was a median 182 ms. The 13-test suite, which drives the real CLI and the real server over stdio, passed 13 of 13 in 3.6 seconds.

Bar chart of measured latency as a share of budget. donation_create first call 17 milliseconds of a 50 millisecond budget, warm call 2 of 50, CLI help 149 of 300.

Every measured path lands at half its budget or less. The model half, at an estimated 18 seconds, would not fit on this chart.

Set that against the model half. The proposal estimates 18 seconds end to end for one logged donation on Sonnet, with three photos at roughly 1,600 tokens each plus 2,200 tokens of prompt and schema. The deterministic half is a rounding error on the probabilistic half, by a factor of about a thousand.

What validation actually catches

The host model fills a typed draft and the server checks it with Zod. Here is the honest inventory of what that check can refuse, straight from the code.

Model error What the server does
Category key that is not in the guide NO_RATE_MATCH: saved at $0 and flagged
Unit value above the guide's high end VALUE_OVER_GUIDE: refused unless an override_reason is written
Condition fair or poor BELOW_GOOD_CONDITION: item excluded, noted
Same receipt twice (SHA-256 of the photo, or receipt number) DUPLICATE_RECEIPT: returns the existing donation, changes nothing
Date not YYYY-MM-DD, quantity not a positive integer Schema rejection, exit 1
Quantity 45 when the photo shows 450 Accepted. $315 logged instead of $3,150.
Date 2026-11-07 when the receipt says 2026-01-07 Accepted.

I ran the 45-versus-450 row this week to be sure, and the date row follows from the schema, which checks the format and nothing else. Forty-five blouses and 450 blouses are both valid drafts. The validator cannot know how many blouses were in the photo, because knowing that is the model's entire job. A shape check cannot be a truth check, and the split does not change that.

The prompt knows this. It tells the model: count only what you can see, and if a count is an estimate, say so and ask before logging. That is the right instruction. It is also the probabilistic half supervising itself.

The flag worth $4,500

Every guide entry is a range, and donation_create takes a basis of low, mid or high to pick a point in it. The median guide entry has a high end 5.25 times its low end. The widest is 12 times. The narrowest is 2 times.

Take the test suite's own donation, 450 women's blouses in good condition. At low the year logs $900: Form 8283 required, nothing else. At mid it logs $3,150. At high it logs $5,400, and the server correctly reports that clothing is over $5,000 for the year, so a qualified appraisal and Section B are required.

Bar chart. 450 blouses log at 900 dollars on the low basis, 3,150 on mid and 5,400 on high. The 5,000 dollar appraisal line sits between mid and high.

Same photos, same count, same rules. The only thing that changed is the flag the prompt defaults to mid.

Same photos, same count, same rules. One parameter moved the result $4,500 and across the only line in this domain that creates real work. The rules did exactly what they should. The choice of input was the whole outcome.

The prompt defaults it: use mid unless told otherwise. So the deterministic half is airtight on a choice that the probabilistic half makes by default, from an instruction I wrote. That is the split drawn honestly: the rules own the arithmetic, and the inputs to the arithmetic still come from somewhere.

The missing half of the measurement

The proposal specifies an eval for the model half: 20 synthetic receipt-and-photo sets with golden JSON, store and date exact at 100%, category accuracy at 90% or better, total fair market value within plus or minus 10%. The architecture diagram has an eval run command and a fixtures/ directory.

Neither exists in the repository. src/commands/ holds three files, intake, donation and valuation. There is no fixtures/ folder. The 13 tests that pass all exercise the deterministic side with hand-written drafts, which is why they pass in 3.6 seconds and why they prove nothing about the side that costs 18 seconds and makes the mistakes.

So the honest status on 2026-11-15 is: the half that cannot be wrong is tested to the budget, and the half that can be wrong has a budget and no test. I have measured zero of the model's error rate. The eval is the next commit, and it should have been in the first one.

What else is not done

The npm package is not published; npm view goodwill-mcp returned 404 this morning, four days after the release; the README says as much and points at the source install, which works. The one-click .mcpb bundle for Claude Desktop is on the GitHub release. The proposal's cost line, about $0.044 per logged donation on Sonnet, is the proposal's own rate card and an estimate, not a bill I have read.

And the guide is one organization's 2023 ranges for clothing only. Household goods, furniture and electronics are on the roadmap, which means a donation of a lamp today is priced at $0 with a NO_RATE_MATCH flag, or at whatever unit_value the model proposes, with the server able to refuse only if a guide entry exists to refuse against. For a category with no entry, there is nothing to refuse against.

The rule I would carry to the next one

Put the arithmetic, the thresholds and the audit trail on the side that cannot hallucinate, and make that side free to run. That part took one session and it is the part the tests cover.

Then list, in a table, every model error the deterministic side cannot see, and build the eval for exactly those rows before you call the thing done. I did the first half and published. The second half is a file that does not exist yet, and until it does, the zero in "zero model calls" is a cost figure, not a correctness claim.

If you have drawn this line in a system of your own and found a cleaner place to put the eval, I would trade notes.

Related: Designing tools an agent can actually call covers the argument design this server depends on, and the undo-window essay is the same rules-around-judgment pattern applied to a bookkeeping agent. The IRS's own guidance on valuing donated property is Publication 561.