juudd's server told every client it could announce a changed tool list, and for a long time it never sent that announcement. Now hello sends it on every call. A capability you declare is a promise, and a client that believes it has every reason not to check for itself.
That is the decision. The rest of this post is the sentence in our own notes that turned out to be wrong, the question nobody had asked, the measurement that answered it, and what it still does not settle.
Two notes that could not both be true
Our product description carried a claim for a long time: a client caches the tool list from the moment it connects, and neither a redeploy nor a reconnect refreshes it. From that we drew a strong conclusion, that a mistake in a tool description is permanent and loses the customer for good.
That sentence shaped a lot of work. It is why descriptions are treated as the product rather than as documentation, and why every load-bearing fact has to be in a description the first time.
A progress note from the same weeks said the opposite: a reconnect refreshed the tool list. Both were written for different purposes, each was true to the person writing it, and nobody noticed they disagreed.
Neither was asking the question that decides anything.
The question nobody had asked
Does a client re-read the tool list when the server tells it to?
Nothing here had ever told one. Our endpoint is stateless: a fresh server and transport for every request, both closed when the response closes. There is no held connection to push a message down and no registry of who is connected. The protocol's own mechanism for this, the notifications/tools/list_changed message, looked unavailable by construction.
Meanwhile the SDK we build on declares, on every connection and unconditionally, that the server supports exactly that notification.
So the server had been promising it since the day it existed and had never sent one. A client that believes the capability has no reason to poll. That turns the staleness from a property of clients into a promise we were breaking.
One call, one millisecond
The tempting way to answer was to turn on sessions and see. That would have meant paying the whole cost of the answer before knowing whether the answer was worth anything.
There was a cheaper way. A notification sent while a call is in progress rides the stream already open for that call, so it needs no session and no standing connection. The control group had been sitting there for days: one connector whose cached list still held eleven tools, from before the custom-domain tools landed, while the development server served fourteen.
We called hello once. The log, in order:
The client came back for the list in the same millisecond, with nothing else prompting it. The three domain tools that had been missing from that connector for days appeared inside that single call.
What it settles, and what it does not
- A client acts on the notification. Observed twice: in the server log, and on the client side as three tools appearing.
- It needs no sessions. The benefit that would have justified holding state is available without holding any, so the stateless design stands.
- Other clients are unmeasured. We measured one. The notification is harmless to a client that ignores it, and we claim nothing about the ones we did not see.
- The cause is a hypothesis. It is consistent with everything observed that a client seeing the declared capability declines to poll and stays stale. We did not prove it, and it is recorded as a hypothesis rather than a finding.
Why hello, and not every tool
hello is what an assistant calls to orient itself. Its own description says it proves the connection works end to end, so it is where a caller's picture of the server is formed and the cheapest moment to correct it.
Sending the notification from every tool would refresh a caller that has already committed to a call using the schema it had, at the price of an extra round trip on every call the product makes.
The notification goes out before the result, not after, because it rides the stream opened for that call and a notification sent after the response has gone is sent into a closed stream. And there is no loop: the client answers with a request for the list, which is not a tool call, so nothing sends a second notification.
One gap remains, and it is stated rather than hidden: a client that calls nothing learns nothing. A caller that reads a stale list, decides a capability does not exist and never calls anything is still lost. It is now one hello away from being found instead of unavoidable.
What changed in what we believed
The strong claim in our notes was corrected. "Permanently" became "until the next hello", which is the difference between a strategic risk and an ordinary one.
The discipline did not relax. Descriptions should still be right the first time, because a caller acts on what it holds at the moment it acts. And the tool list still only grows, because a client that was offline during a deploy, or that ignores the notification, still holds a copy we cannot see.
The probe that asked the question is deleted. What remains is two tests, so that a future "the client did nothing" means the client did nothing, and not that nothing was sent.
The rule, once
If the server declares it can tell a client something changed, it has to actually tell it, and it should find out whether the client listens by measuring one call rather than by building a session to ask. What each tool does, and what it refuses, is listed in the docs.