Since version 7.0.19 the Vercel AI SDK can fingerprint the tools of an MCP server. You call fingerprintTools when you first trust a server, store the result, and on later connects detectToolDrift tells you which tools were added, removed or changed. The package it ships in, ai, was downloaded 48.3 million times in the week of 12–18 November 2026.
The fingerprint covers three members of a tool definition: the description, the input schema and the title. Annotations are not among them. A tool that said readOnlyHint: true on the day you reviewed it can say readOnlyHint: false and destructiveHint: true later, and the drift check returns three empty lists.
We run HISTOR, a public record of what MCP servers advertise and when it changes, so we counted how often that happens. Between 23 October and 16 November 2026, 524 tools on 189 servers switched readOnlyHint from true to false. For 176 of those tools the fingerprint of the tool would not have moved. For 91 of them, on 32 servers, no tool on the server changed its fingerprint in that read, so the check would have had nothing to report.
The gap itself is not our find. NerdLevelTech showed it in September on a purpose-built server, for the output schema as well, and published a fingerprint over the raw tools/list that closes it. What a test server cannot say is how often this happens on servers people actually run. That is the part counted here.
What goes into the hash
This is read from the published source of ai 7.0.177 (src/generate-text/tool-fingerprint.ts) and @ai-sdk/mcp 2.0.101 (src/tool/mcp-client.ts). In our words, not the library's code:
tool as the MCP client builds it (automatic schemas):
description = description from the server
title = title from the server, or annotations.title if there is none
inputSchema = { ...inputSchema from the server,
properties: its properties or {},
additionalProperties: false }
fingerprint of one tool = SHA-256 over { description, inputSchema, title },
keys sorted, base64url
Two things follow. Everything outside those three members is invisible: outputSchema, the hint annotations, _meta, icons, execution, vendor members. And the top-level additionalProperties of the input schema is replaced with false before hashing, so a server that changes it from false to true hashes the same.
The choice is defensible. The description and the schema are what the model reads, so they are where an injected instruction goes, and the function's own comment calls them the server-controlled, security-relevant fields. Hints are a different kind of risk: the model does not act on them, the host does. And hosts do. The same AI SDK documentation page shows an approval policy that lets a call run without asking when readOnlyHint is true, next to a note that annotations are untrusted hints. Cursor's Bugbot only uses MCP tools that a server marks read-only, according to Cursor staff. Where a host decides like that, the hint is part of what was approved. The release note is explicit about the division of labour: "Baseline storage and the drift response remain the app's responsibility."
The same server, read three times
A one-tool MCP server over stdio, read through the SDK's own client: once as reviewed, once after only the hints were edited, once after only the description was edited. The three files are server.mjs, pin.mjs and check_ai_sdk.mjs, with a package.json that pins ai 7.0.177, @ai-sdk/mcp 2.0.101 and zod 4.1.8. Node.js 22 or newer:
npm install
node check_ai_sdk.mjs
reviewed {"readOnlyHint":true,"destructiveHint":false} 4VyxOrn4OpyUV4G8Ixs30JkSqacwAZGm5nEbaMmYOoQ
hints edit {"readOnlyHint":false,"destructiveHint":true} 4VyxOrn4OpyUV4G8Ixs30JkSqacwAZGm5nEbaMmYOoQ
text edit {"readOnlyHint":true,"destructiveHint":false} t4wnBXNFwj6Ez6x-JN7gDWZHdo0nGmN_sKStSRILIpM
fingerprintTools, hints edit: {"added":[],"removed":[],"changed":[]}
fingerprintTools, text edit: {"added":[],"removed":[],"changed":["list_orders"]}
whole definition, hints edit: {"added":[],"removed":[],"changed":["list_orders"]}
The first three lines are what the server sent and the fingerprint the SDK computed. With the hints reversed the fingerprint is the same string, and detectToolDrift has nothing to report. The description edit moves it. The last line is the same comparison over a hash of the whole definition, which is the fix further down.
How often a hint moves on its own
HISTOR reads the tool list of every remote server in the official MCP registry without credentials, on a schedule, and of npm and PyPI server packages once per published version. Since 23 October it keeps every member of a definition, annotations included. The count below uses the snapshot of 16 November: every read between 23 October and 16 November in which something in a tool definition differed from the previous read of the same server.
| Move | All | This tool's fingerprint unchanged | No fingerprint changed in the read |
|---|---|---|---|
readOnlyHint true → false |
524 tools, 189 servers | 176 tools, 76 servers | 91 tools, 32 servers |
destructiveHint false → true |
1,075 tools, 314 servers | 720 tools, 198 servers | 230 tools, 87 servers |
readOnlyHint false → true |
321 tools, 78 servers | 262 tools, 30 servers | 48 tools, 15 servers |
destructiveHint true → false |
141 tools, 65 servers | 64 tools, 27 servers | 16 tools, 8 servers |
The middle column is the per-tool view: the drift check may name another tool of that server, but not this one. The right column is the case where it names nothing.
The last two rows were added on 20 November, after a reader asked about direction. They count the opposite move: a tool that now claims to be read-only or not destructive. That is the one to watch if your host skips the prompt for read-only tools, because it stops asking about that tool. It is rarer than the first move, but the fingerprint misses more of it: 262 of the 321.
These are not spread evenly. One PyPI package accounts for 37 of the 91 tools, and two hosts for 54 of the 230. They also stay: of the 176 readOnlyHint moves one had gone back by 16 November, and five of the 720 destructiveHint moves; in the other direction, 12 of 262 and none of 64.
One case from the data: a remote server whose four tools all went from readOnlyHint: true, idempotentHint: true to false on both in one read, with nothing else changing. That reads like an author correcting annotations that were wrong. It is also exactly the edit that an approval based on the old hints would want to hear about.
The other reads that move nothing
Hints are a small part of it. Of 103,657 reads in which a definition changed, 6,338 would move no fingerprint at all: 6.1 % of reads, on 2,014 of 14,009 servers.
Most of these are _meta and outputSchema, and one host produces 2,805 of the 6,338 by itself. We also left out 174,484 reads in which the only thing that moved was a vendor's per-tool version member; counting them would have made the share look far larger and meant nothing. A hash over the whole definition moves on all of that, which is the cost of covering more: more alarms that turn out to be housekeeping.
FastMCP's recipe is about the schema, and says so
FastMCP documents a fingerprint too (the "Tool fingerprinting" page, new in 3.0.0). Its base payload is the tool key and the input schema; the page says FastMCP does not define a single contract hash and leaves description, output schema, annotations and _meta for the author to add. It is meant for a server author checking their own tools in CI.
Used as it stands on the consuming side, it would not move in 10,742 reads where only tool descriptions changed, on 4,191 servers. A description edit is the plain form of tool poisoning, so anyone borrowing the recipe for a gateway should add the description first.
Pinning the whole definition
detectToolDrift is a plain comparison of two maps, so it works with any fingerprint; the September write-up takes the same route. The client's listTools() returns the definitions as the server sent them (its schema keeps members it does not know); hash those instead:
// pin.mjs
import { createHash } from 'node:crypto';
function canonical(value) {
if (value === null || typeof value !== 'object') return JSON.stringify(value);
if (Array.isArray(value)) return `[${value.map(canonical).join(',')}]`;
const keys = Object.keys(value).filter(k => value[k] !== undefined).sort();
return `{${keys.map(k => `${JSON.stringify(k)}:${canonical(value[k])}`).join(',')}}`;
}
export function pinDefinitions(tools) {
return Object.fromEntries(tools.map(tool =>
[tool.name, createHash('sha256').update(canonical(tool)).digest('base64url')]));
}
const reviewed = pinDefinitions((await client.listTools()).tools); // store this
// on a later connect
const drift = detectToolDrift(pinDefinitions((await client.listTools()).tools), reviewed);
The last line of the run above is this pin on the hints edit. If the _meta churn of a server you depend on makes it too loud, drop that member before hashing and keep the annotations.
For servers configured in a project file (.mcp.json and the like), WARDEN keeps the same kind of pin in a lock file you commit. Checked on 19 November with the 0.31.0 package from npm and the one-tool server above:
npx -y @aimarket/warden@0.31.0 scan --project --lock warden.lock.json --update-lock # after reading the definitions
npx -y @aimarket/warden@0.31.0 scan --project --lock warden.lock.json # in CI
✗ BLOCK orders claude-code 1 tool · score 0.00 · TOOL_DEF_DRIFT · lock: drift
1 server: 0 allowed, 1 blocked, 0 not checked, 0 skipped.
That second command exited 0 while the server was unchanged and 1 after its readOnlyHint went from true to false. Since WARDEN 0.34.0 (20 November) the --markdown report also names the hint that moved and its direction under "Read first" (true → false: the tool now says it does more; false → true: it now claims less), so a reviewer reads that line first, and --json carries it as lock.changes[].hints; checked with 0.35.0 on 21 November.
What this count does not say
- A hint that moves is not an attack. Most of these edits look like corrections.
- The MCP specification treats annotations as hints a client need not believe. How many applications built on the AI SDK decide anything by them is not measured here.
- HISTOR reads without credentials from one address. Servers behind sign-in, and lists that differ per user, are not in the count; a change that came and went between two polls is missed. For a package, a "change" is the difference between two published versions.
- The rules for the AI SDK were read from the published source and confirmed on the one-tool server above, not by running the library over the recorded definitions. Where the record could not tell (any move of
annotations.title, truncated summaries, tools added or removed in the same read) the read is counted as seen, so the numbers lean low.
Run the count
Three files of the snapshot (161 MB), Python 3.9 or newer, no packages:
for f in servers changes extras_changes; do
curl -sSO https://histor.modelmarket.dev/datasets/2026-11-16/$f.jsonl.gz
done
curl -sSO https://modelmarket.dev/blog/the-ai-sdks-mcp-drift-check-doesnt-hash-readonlyhint/blind_spots.py
python3 blind_spots.py . 2026-10-23T18:22:44Z 2026-11-16T06:29:45Z
It prints the JSON the figures are drawn from (results). The file hashes are in the snapshot's signed manifest.json, and the README there says how a change is counted. A second script lists the 321 hint moves of the right-hand column one per line (CSV); it was written separately and arrives at the same 91 and 230.
We run HISTOR and build WARDEN. AI assistance was used for the count, the figures and this article. The data is the HISTOR snapshot of 16 November 2026 (CC BY 4.0); the commands above were run as printed on 19 November 2026.



Top comments (13)
Good catch that the fingerprint skips annotations, and the numbers on readOnlyHint flips make it concrete. A cheap mitigation until the SDK covers it is to hash the raw tools/list entry (annotations and outputSchema included) yourself and store that next to fingerprintTools, then diff on connect. I'd also treat a readOnlyHint true-to-false flip as a hard failure that needs re-approval rather than a warning, since that's the change that actually widens what the model may do.
Agreed on the hard failure, and these moves stick: of the 176 tools whose readOnlyHint went from true to false while the AI SDK fingerprint stayed the same, one had moved back by 16 November.
Your comment made us count the other direction, and it matters more than I expected. If a host skips the prompt for read-only tools, a tool that goes from false to true is the one that stops being asked about. In the same window that happened to 321 tools on 78 servers, and for 262 of them the fingerprint did not change in that read. I’ve added both directions to the post.
So I’d fail on any hint move and say which way it went. WARDEN’s lock already fails on any change; since today its source also names the hint and the direction at the top of the report, so the reviewer reads that line first. It ships with the next release.
That two-direction count is the useful part. A false-to-true flip is the quieter failure because the host stops prompting, and 262 of 321 with an unchanged fingerprint shows how easy it is to miss. Failing on any hint move and naming the direction at the top of the report seems right to me, since the reviewer knows which way to read it first.
Agree the quiet direction is the dangerous one. There's a third case no drift check catches even with annotations hashed: a hint that was wrong on the day you reviewed it. In our audits, GitHub's MCP server ships update_issue_labels as destructiveHint: false while it replaces the whole label set. The Kubernetes server's pods_run is non-destructive on paper and force-applies over an existing Service. Both would fingerprint as perfectly stable. Drift tells you the server changed its story; only calling the tool tells you whether the story was true.
You're right, and both of your examples hold up in the source. GitHub's
update_issue_labels(behind theissues_granularflag) hasdestructiveHint: false, and its own description says it replaces the current labels with the list you pass. In the Kubernetes server,pods_runisdestructiveHint: false, but when you give it a port it also creates a Service and server-side applies both withForce: true. Pass anamethat already exists and the existing Service is overwritten.A fingerprint only answers whether the server's claims changed since you approved them. It can't tell you whether those claims were true. In the GitHub case the wrong hint sits next to a description that contradicts it, so reading the definition is enough. In the Kubernetes case the definition looks fine, and only the code or a test call shows what happens.
Your comment made us build a check for the first kind. WARDEN 0.35.0 flags a tool whose
readOnlyHint: trueordestructiveHint: falseis contradicted by its own description ("Deletes …", "replaces the current …", "cannot be undone"). We ran it over the tool definitions HISTOR recorded on 16 November: 468,359 tools with an explicit hint on 26,808 servers. It flagged 307 tools on 204 servers that say read-only and 960 tools on 593 servers that say non-destructive. In a hand-checked sample of 50 from each group, 40 and 45 were real contradictions; we didn't measure what it misses. The finding is advisory: it tells you to label the tool yourself, and an operator's label overrides the server's hint. The Kubernetes kind stays invisible to it.Your audits check what tools actually do, and HISTOR records what servers say about their tools and when that changes. The two seem to fit together. If you're interested, we can send you the 1,267 flagged tools, and you could run your write tests on some of them to see how often the description was the honest part.
Thanks for running it over the full 16 November snapshot. The split you describe seems right: description-contradiction checks catch the self-inconsistent hints, while the Kubernetes-style case only shows up when someone exercises the tool. One thing I'd find useful in the advisory output is a note on which phrases triggered each flag, so reviewers can quickly tell the real contradictions from the roughly 10-20% that weren't. Appreciate you adding both drift directions to the post.
It already does that, for this reason. Each flag names the word or phrase that matched and quotes the sentence it was in, so the reviewer sees the evidence next to the verdict:
The quote is cut at 160 characters. In
--jsonit currently sits inside the finding's message rather than in fields of its own. Would separate fields for the matched phrase and the quoted sentence help, for example to sort or filter a long list in review?Yes, separate fields would help a lot. A matched_phrase and quoted_sentence pair would let reviewers sort or group by the trigger word, and diffing two runs gets much easier when the message text isn't the only thing that changes. I'd keep the human-readable message as is and add the structured fields next to it.
Yes, separate fields would help a lot. A matched_phrase and quoted_sentence pair would let reviewers sort or group by the trigger word, and diffing two runs gets easier when the message text isn't the only thing that changes. I'd keep the readable message as is and add the structured fields next to it.
Done in WARDEN 0.36.0. Each
TOOL_HINT_CONTRADICTS_DESCRIPTIONfinding in--jsongets anevidenceobject next to the message, which stays as it was:The names are camelCase to match the rest of WARDEN's JSON.
matchedPhraseis lower case so it groups cleanly, andquotedSentenceis the whole sentence, while the message still cuts its quote at 160 characters. Grouping by trigger word then looks like this:Thanks for pushing on it.
readOnlyHint is the field a client reads to decide what runs without asking. A change there changes what executes unprompted, which is a bigger deal than a reworded description.
Agreed, and the quieter case is the other direction: a tool whose
readOnlyHintgoes from false to true. If your host skips the prompt for read-only tools, that is the tool it stops asking about. In HISTOR's record from 23 October to 16 November that happened to 321 tools, and the AI SDK fingerprint would not have moved for 262 of them. The direction in the title, true to false, was 524 tools, 176 of them unseen.What covers both is pinning the whole definition, hints included, and failing on any change:
It exits 1 when any hint moves. Since 0.34.0 the
--markdownreport puts the moved hint and its direction under "Read first", and--jsoncarries it aslock.changes[].hints.@alexar76 Pinning the whole definition is the right cut: a hint flip changes what runs unprompted even when the description reads the same. Failing the build on any change is the part I'd keep.