Your API returns 200. Your agent still gets garbage.
driftprobe tests the data your AI agent really receives from APIs and MCP tools. It fails when a source keeps answering while the content quietly degrades.
Free. MIT. Node 22 or later. No account.
GET /products
- 200 OK
- schema unchanged
- uptime 100%
x price: only 16% of 50 items carry a value (contract: at least 90%)
Every check you have is green.
| Check | Asks | Sees | Result |
|---|---|---|---|
| Uptime monitor | Did the server answer? | 200 OK | pass |
| Schema diff | Did the shape change? | no field changed | pass |
| driftprobe | Is the data your agent needs still there? | 84% of the prices are gone | fail |
A person looking at this data would notice the empty column in two seconds. Your agent does not stop. It writes a confident report from what it received, and nobody finds out until a customer does.
It learns the contract from your agent’s real calls.
-
Record
A local proxy sits between your agent and the source. It forwards everything untouched and writes down the shape of each response. Works on HTTP APIs and on MCP tools, including over server-sent events.
driftprobe record --upstream https://api.example.com -
Learn
What was observed becomes a small YAML file in your repo. You do not need the provider’s cooperation.
driftprobe learn --observed .driftprobe/observed.jsonl --out-dir contracts # contracts/products.yaml name: products expect: min_items: 25 fields: price: { type: number, min_coverage: 0.9, min_distinct: 2 } updated_at: { type: date, max_age: 3d } -
Check
Run it in CI or on a schedule. It fails with a plain sentence that names the field, and exit code 1 stops the build.
$ driftprobe check contracts/*.yaml GET /products x price: only 16% of 50 items carry a value (contract: at least 90%) x updated_at: newest value is 289 days old (contract: 3d) 1 contract(s): 0 ok, 1 broken, 0 could not be checkedOr as a GitHub Action:
uses: driftprobe/driftprobe@v0
Shapes, never values.
For each field it keeps how many items carry a value, which types were seen, how many distinct values, and the age of the newest date. The proxy listens on your machine only. Secrets stay in your environment, and a contract only reads variables that start with DRIFTPROBE_, so one you did not write cannot reach the others.
What it does not do. It does not know if a value is true, only if it is there, fresh and varied. Field names and route words are kept, so read a contract before you commit it. It learns what your agent receives: narrowing that to what your agent actually reads is manual for now, with --fields name,price.
How often does this really happen?
I could not find anyone who has measured it. So I am measuring it, on the official MCP registry.
- 53,434 servers listed on 31 October 2026
- 2,000 remote ones sampled, no credential declared, at most 5 per domain
- 1,115 answered with their tool list
- 770 declared a read only tool
- 415 returned data from a read only call
- 100 real lists, across 98 domains, kept for the study
One read only tool on each, twice a day, for 30 days, recording shapes only. Results go out in December whatever they show, including if almost nothing breaks.
The tool is free. Being told is what would cost.
$0
CLI and GitHub Action
MIT licensed, no account. It runs on your machine or in your CI, and you see a break when you look at your build.
Try it in a minuteNot built yet
$29/month
Hosted alerts
- An email or a Slack message the moment a contract breaks.
- The history of each contract: when it started to degrade, and how fast.
- An alert when your checks stop reporting, so a dead CI job does not look like good news.
- Your CI keeps running the checks. The service receives the verdict, never your data or your API keys.
- No password to manage: pay, receive a key, paste it in your CI. Cancel in one click.
It gets built when enough people ask. The button opens a GitHub issue: give it a 👍 and press Subscribe to hear when it opens.