Deterministic verification for AI-generated analysis: run a spec, inspect or diff a workbook
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Stop the line when the numbers don't add up.
andon re-checks the numbers in finished analysis β the report your AI agent just drafted, the workbook a colleague "quickly updated" β against the data they came from and against themselves. It does this with arithmetic, not with another LLM: reconciliation, internal consistency, schema contracts and Excel workbook integrity, written down as a small YAML spec and enforced with exit codes.
That screenshot is real output. The example it runs on is in
examples/quarterly-report/, staged by a script that
plants the defects I keep meeting in real reporting work: a count taken from a stale
snapshot, a revenue total typed over by hand, shares that sum to 101.2, a total row
nobody updated after a data refresh, a #REF!, and freight numbers stored as text.
I'm an industrial engineer. I build and run operations reporting β delivery KPIs, forecast accuracy, inventory analytics β and over the last two years an increasing share of the first drafts around me has been written by AI agents. They are fast, tireless, and confidently wrong in ways a tired human is not: the filter that silently dropped cancelled orders, the percentage column that almost sums to 100, the total row that survived three edits of its parts.
The common answer is to ask a second model to review the first one. I think that is the wrong tool. Whether 539 rows really sum to 257,060.48 is not a matter of opinion, and no amount of model capability makes an opinion the right instrument for it.
Manufacturing solved this problem decades ago. On a Toyota line, any worker who spots a defect pulls a cord β the andon β and the line stops until the problem is understood. The machine equivalent, jidoka, is a machine that stops itself when it detects an abnormal condition. This tool is that cord for spreadsheets and reports: a small, deterministic gate between "the analysis is written" and "the analysis is sent."
andon's behavior is easier to trust because it is constrained. These rules are enforced in code, not just promised here:
The PyPI distribution is named andon-verify (the bare andon name was already
taken); the command and the import stay andon β andon run ..., import andon.
From source: pip install git+https://github.com/gulmezeren2-byte/andon.
Point andon at data and claims:
Or try the sabotaged example in this repo:
| Family | Checks | Question it answers | Can FAIL? |
|---|---|---|---|
reconcile | row_count, sum, aggregate, group_sum, keys | Does the report agree with the data it came from? | yes |
internal | total_row, percent_sum, recompute | Does the report agree with itself? | yes |
schema | columns, unique, not_null, allowed_values, date_continuity | Is the data shaped the way everyone assumes? | yes |
excel | integrity | Is the workbook mechanically sound? (#REF!, values typed over formulas, numbers stored as text β including the 1.234,56 flavor β hidden rows, external links) | on error cells |
plausibility | bounds, new_categories, mean_shift | Should a human look at this before anyone trusts it? | no β REVIEW at most |
Full parameter reference with examples: docs/checks.md.
Exit codes are a contract:
| code | meaning |
|---|---|
| 0 | every check passed |
| 1 | at least one FAIL (with --strict: also on REVIEW/ERROR/nothing-ran) |
| 2 | no failures, but REVIEW flags were raised |
| 3 | nothing was verified β a check could not run, or every check was skipped |
| 4 | the spec itself is broken |
As a GitHub Action β one line, and the verdict lands in your job summary:
Or plainly, in any runner:
Stop a commit before a broken report leaves your machine:
andon is built to be driven by agents, not to contain one:
--json emits the full report with stable field names; the exit code alone is enough
for a go/no-go decision.skills/verify-with-andon/ ships a skill for Claude
Code and compatible harnesses that teaches an agent the discipline: after drafting any
analysis, write the spec, run andon, and report the verdict β including the rule that
loosening a tolerance to make a check pass must be declared, never silent.pip install 'andon-verify[mcp]' and run andon-mcp to expose three
tools to any MCP-speaking runtime: run (execute a spec), inspect (integrity-scan a
workbook with no spec), and diff (classify what changed between two versions). The
agent gets the same structured verdict a human gets β not prose it has to parse back.No local Python? The Dockerfile builds the same server:
docker build -t andon . && docker run --rm -i -v "$PWD:/work:ro" -w /work andon.
My working rule: the agent that wrote the analysis also writes the spec, and neither is
finished until andon run exits 0 β or a human has signed off on every flag it raised.
where filters are pandas query() expressions. They are expressive, which means
a spec can encode the same mistakes as any query. Specs are code β review them like code.pip install 'andon-verify[parquet]'.No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/andon)<a href="https://allmcps.com/mcp/andon"><img src="https://allmcps.com/api/badge/andon?style=directory" alt="Andon on AllMCPs" /></a>