We measured whether Claude actually uses memory tools
Context is an MCP server that gives ChatGPT, Claude and other assistants one shared memory. It has six tools: search_context, get_context, remember, update_memory, merge_memories and forget_memory. Whether any of that is useful depends on something I don't control: whether the model decides to call them.
In manual testing Claude often skipped Context and answered from its own, out-of-date built-in memory. Re-testing by hand gave me anecdotes, so I built a small bench. This is what it showed, including a bug in the bench itself.
How the bench works
Each trial runs the real MCP server from src/mcp.ts in-process, against a throwaway SQLite database that mimics Cloudflare D1. It's seeded with 18 memories about a fictional user, Sam. The model talks to it through the Anthropic API with a system prompt that approximates the Claude app. Nothing touches production.
The setup is designed so you can tell whether the model actually read Context:
- Some facts exist only in Context (a sister's wedding in Lisbon, a vegetarian diet, a rule about grams instead of cups). If they show up in the answer, the model read them.
- A stand-in for Claude's built-in memory sits in the system prompt, and it's stale on purpose: it says Sam is still a data analyst at Halden Bank, while Context says Sam left in September to work on a startup.
- Three decoy connectors (Gmail, Drive, Calendar) return "No results." so Context has competition.
There are 22 scenarios (24 turns in total), grouped by what they test:
- read: needs Context ("Any ideas for what I should get my sister as a wedding present?")
- conflict: built-in memory is stale ("Write a two-sentence bio for my conference badge.")
- skip: doesn't need it (a UK postcode regex, the capital of Australia)
- write: a lasting fact in passing (a new standing desk) should be saved unprompted
- update: a seeded fact changes (an idea dropped, a partner on day shifts, a corrected name) and must be updated, not duplicated
- noSave: a reminder, a wifi password, an already-known fact
- instructions: "always use 24-hour time" must be filed as an instruction; seeded rules (grams, no em dashes) must be followed
- multi: a coding question, then a personal one in the same conversation
Checks are mechanical: tools called, database changes, regexes over the answer. An update passes only if the old row is no longer active and at most one active memory matches the topic.
The variants recreate conditions of the real Claude app:
- eager: the connector's tools are set to "Always available", so they're in the prompt from the start.
- auto: tools load only after a tool search, which is how Claude's "Auto" setting behaves. In the bench that's the API's
defer_loadingwith a BM25 tool search tool. - +instr: the MCP server's
instructionsare included in the system prompt. - +prefs: the user pasted the custom instructions from Context's connect page, which say to call
get_contextat the start of every conversation. - v1 / v2: frozen snapshots of older tool definitions from
bench/snapshots/.
The full matrix
The cleanest complete run is from the morning of 11 November: Claude Sonnet 5.5, 3 repeats, 462 trials, no API errors, and an estimated $5.07 in tokens. Each number is the share of relevant turns that passed:
| check | v1-eager | eager | eager+instr | eager+prefs | v1-auto | auto | auto+prefs |
|---|---|---|---|---|---|---|---|
| reads when needed | 82% | 100% | 100% | 100% | 48% | 42% | 100% |
| leaves it alone when not | 100% | 67% | 92% | 0% | 100% | 100% | 0% |
| answer uses Context facts | 78% | 100% | 100% | 100% | 61% | 53% | 100% |
| saves without being asked | 72% | 100% | 100% | 100% | 0% | 0% | 100% |
| updates instead of duplicating | 75% | 75% | 92% | 50% | 50% | 50% | 50% |
| doesn't save junk | 100% | 100% | 100% | 100% | 100% | 100% | 100% |
| files in the right category | 0% | 100% | 100% | 100% | 0% | 0% | 100% |
| all checks | 71% | 90% | 97% | 75% | 50% | 46% | 75% |
| tool searches per turn | 0.0 | 0.0 | 0.0 | 0.0 | 0.6 | 0.6 | 1.3 |
Source: bench run 2026-11-11 07:38. v1's 0% on categories is structural: the v1 schema had no instructions category at all.
"Auto" tool loading is where memory goes to die
With tools deferred, Claude has to decide to search for a memory tool before it can use one, and mostly it doesn't. In auto it read Context on 42% of the turns that needed it and saved the standing-desk fact 0 times out of 3. The worst case was "What do you know about me?": 0 out of 3 in both auto variants. Claude answered straight from its built-in memory every time, including the stale job ("Data analyst at Halden Bank in Bristol"), and never looked for a tool. The conference badge bio failed all 3 times for the same reason.
Descriptions can't fix this: a description the model never loads can't persuade it of anything.
Custom instructions fix reading, and over-correct
Adding the connect page's custom instructions to auto took reads when needed from 42% to 100%, saves from 0% to 100% and all checks from 46% to 75%. The cost shows up in the next row: "leaves it alone when not" fell to 0%. "At the start of every conversation, call get_context" means every conversation, including "What's the capital of Australia?". In eager+prefs it's the same: 0/3 on all three skip scenarios.
For a memory product I'll take that trade: an unneeded read costs latency, a missed read gives a wrong answer. But it is a trade.
Descriptions matter when tools are eager
Between v1 and the current definitions, in eager mode, "reads when needed" went from 82% to 100% and "saves without being asked" from 72% to 100%. Most of that came from telling the model why to call the tool, not just what it does. v1's search_context said:
Search the user's long-term memory for facts relevant to the current
question: their projects, goals, preferences, people, and past decisions.
The current one adds "even if you think you already know: it may hold facts your own memory doesn't." That's aimed directly at the built-in-memory problem. The price was a few unneeded reads: plain eager read Context for the regex question in all 3 runs.
The finding that changed how I write MCP servers
The weakest row for the current tools was "updates instead of duplicating". When Sam said "Jonah's moved to day shifts now", Claude would often save a new memory and leave "Partner Jonah is a nurse who works night shifts" active next to it.
The rule for this already existed. It lived in the server's instructions:
CHANGES: If a new fact contradicts an existing memory, call update_memory
on the old one instead of adding a duplicate.
The bench shows those instructions working when they reach the model: eager+instr scored 83% on updates in the 10 November run and 92% on 11 November, against 58% and 75% for plain eager. But when I checked by hand, claude.ai web chat did not pass Context's server instructions to the model, even after reconnecting the connector. Claude Code, using the same connector, did. So for people using Claude in the browser, the realistic baselines are the variants without instructions, and their update rates were 58% to 75% with the descriptions of the time (and 50% for auto+prefs).
The fix was to move the guidance to places every client shows the model: the tool descriptions, and the tool result. Here's remember, before (snapshot v2) and after (src/mcp.ts):
// before
... Batch everything from one conversation into a single call. Check
search_context first to avoid duplicates; use update_memory to change
an existing memory.
// after
... Batch everything from one conversation into a single call. Only for
facts that are new: check search_context first, and if the fact changes
or contradicts something already saved (a plan dropped, a new job, a
different schedule, a corrected name), call update_memory on that memory
instead. Never call remember for a fact you have already saved with
update_memory: update_memory saves the new version itself, so calling
both creates a duplicate.
And update_memory:
// before
Replace an existing memory when the fact has changed (e.g. the user
changed their mind). The old version is kept in history. ...
// after
Replace an existing memory when the fact has changed (e.g. the user
changed their mind, dropped a plan, or corrected something). Write the
full current fact as content. This saves the new version itself and
replaces the old one: do not also call remember for the same fact, or
it will be duplicated. ...
The tool result now repeats it, because the model reads the result just before it decides on its next call. A real one from the bench:
Updated (the new version is saved; don't call remember for this fact):
- [l7lufp8hqd] Partner Jonah is a nurse who used to work night shifts and
moved to day shifts as of November 2026, so evenings are now free
together. (stated, via ChatGPT, edited by Claude, learned 2025-11-03, ...)
The concrete examples are deliberate. In the failing transcripts the model wasn't ignoring a rule; it just didn't see "we've decided to drop the plant-identification idea" as contradicting "Exploring a plant-identification feature".
The before/after
To compare like with like, I ran the old (v2) and current definitions side by side on the write and update scenarios: Sonnet 5.5, 5 repeats each, in the same run.
| scenario | v2-eager | eager | v2-auto+prefs | auto+prefs |
|---|---|---|---|---|
| write: standing-desk | 5/5 | 5/5 | 5/5 | 5/5 |
| update: drop-feature | 2/5 | 5/5 | 0/5 | 5/5 |
| update: day-shifts | 4/5 | 5/5 | 2/5 | 5/5 |
| update: self-correct #1 | 3/5 | 5/5 | 5/5 | 5/5 |
| update: self-correct #2 | 5/5 | 5/5 | 5/5 | 5/5 |
| noSave: known-fact | 5/5 | 5/5 | 5/5 | 5/5 |
| updates instead of duplicating | 80% | 100% | 60% | 100% |
| update_memory share of writes | 43% | 60% | 28% | 62% |
| all checks | 80% | 100% | 73% | 100% |
Source: bench run 2026-11-11 10:26 (100 trials, about $1.76).
The failures in the v2 columns are exactly the pattern the new text targets. In v2-auto+prefs, all five drop-feature runs called remember and never update_memory. With the current text, all twenty drop-feature and day-shifts trials across both setups called update_memory on the old row, and none followed it with remember.
A bug in my own bench
While pulling transcripts for this post I found something I need to own. Until the 10:26 run, the bench's fake D1 returned batch() results without meta.changes. Production's updateMemory reads that field after its insert-and-supersede batch, so in the bench every first update_memory call wrote the update and then threw (Cannot read properties of undefined (reading 'changes')). Real D1 returns the field, so production wasn't affected, but the model in those earlier runs saw an error after a successful update. In a few transcripts it reacted by calling remember, which inflated duplicates.
So treat the 10 November and early 11 November update numbers as noisy. Two things still hold up. The 09:18 run, which still had the bug, scored 100% on updates for both eager and auto+prefs (5 repeats), so the descriptions alone made the difference even though the model never saw the new result text. And the 10:26 run above, with the stand-in fixed, is a clean A/B.
Smaller things the data showed
- Not saving junk was never the problem. Sonnet 5.5 didn't save the milk reminder, the wifi password or the already-known vegetarian fact in any variant (100% across the board). An early smoke run on Claude Haiku 4.5 did save the wifi password in eager mode, but that was one repeat.
- Categories need a schema, not a hope. v1 had no
instructionscategory, so "always use 24-hour time" was filed under preferences all 3 times. Once the enum included it and described it, filing was 100% everywhere the tools loaded. - Saved instructions get followed once they're read. The banana bread recipe used grams in every variant that read Context, and the LinkedIn post avoided em dashes.
- Stale built-in memory is sticky. The conflict scenarios fail whenever the model doesn't read. I also tightened the "still at Halden" regex between runs so that "a former analyst at Halden" counts as correct, so don't compare conflict numbers across dates.
Caveats
- The system prompt approximates the Claude app's, which is much longer and not public.
- Three or five repeats per cell separates 0/5 from 5/5, not 80% from 90%.
- One model and one fictional user for the main runs. On 10 November my API credits ran out mid-run (116 of 462 trials errored, all in auto variants), hence the re-run above.
- "claude.ai doesn't pass server instructions" is a manual observation from 11 November, not something the bench can measure. Clients change.
Takeaways for MCP server builders
- Don't put behaviour you rely on only in server
instructions. At least one major client didn't show them to the model when I tested. Tool descriptions are read wherever the tool is loaded. - Use tool results as a second channel. The result is the last thing the model reads before its next decision, so one sentence there ("don't call remember for this fact") is cheap and well placed.
- Say why, with concrete examples. "Use update_memory to change an existing memory" didn't work reliably. Listing what a change looks like ("a plan dropped, a new job, a corrected name") did.
- Deferred loading changes everything. If the client hides your tools behind a search, the model's prior decides, and your descriptions never get a vote. Tell users which setting to use, and measure both.
- Measure the cost side too. Every nudge toward "call me" showed up as unneeded reads. Have scenarios where the right answer is to leave your tools alone.
- Test your test harness. My bench had a bug that only showed up in transcripts. Keep full transcripts and read some failures before you believe a percentage.
The bench lives in the Context repo (bench/), so you can run it yourself, and a full run costs a few dollars of API usage. If you want to try the thing it measures, Context is free at keepyourcontext.com. Connect Claude or ChatGPT, and they'll share one memory that you can read and edit yourself.