I ran across a post this week about a read-only diagnostic agent that had been poking around someone's AWS account for months without ever making a change, and the author's framing stuck with me: the agent "was never wrong" because it never did anything a wrong answer could break. That's not the same as being right. It just means nobody was in a position to catch it being wrong.
My own MCP server has the same shape of risk, so instead of taking the claim on faith I went and checked it against my own code.
server.py is a small "developer presence" server with eight tools split across two platforms. GitHub gets three read-only tools (get_github_profile, list_repos, get_repo_stats); DEV.to gets tools that both read and write (create_article, update_article). The write tools have earned a lot of my attention over the months — duplicate-title guards, confirm gates, audit logs, fingerprint checks against stale overwrites. The read-only ones have gotten almost none, for the obvious reason: a write tool that's wrong corrupts something you'll eventually notice. A read tool that's wrong just hands back a number, and the number looks exactly like a right answer.
So I picked the oldest, simplest read-only tool and asked: does its output actually mean what its docstring says it means?
@mcp.tool() def get_repo_stats(repo: str) -> dict: """Get stars, forks, watchers, open issues for enjoykumawat/<repo>.""" r = _gh(f"/repos/{GITHUB_USERNAME}/{repo}") return { "name": r["name"], "stars": r["stargazers_count"], "forks": r["forks_count"], "watchers": r["watchers_count"], "open_issues": r["open_issues_count"], "language": r.get("language"), "description": r.get("description"), } That "watchers": r["watchers_count"] line looks correct on sight. The field is literally named watchers_count. I'd written this months ago, never questioned it since, and no caller of this tool ever had reason to either — nothing downstream compares watchers against anything.
I went and read GitHub's actual REST API docs instead of trusting the field name, because a tool that only reads has no other way to get caught:
In responses from the REST API,
subscribers_countcorresponds to the number of watchers, whereaswatchers,watchers_count, andstargazers_countcorrespond to the number of users that have starred a repository.
That's GitHub's own docs, word for word. watchers_count is not watchers. It's stars, under a second name — a naming fossil left over from before GitHub split "star" (bookmark) from "watch" (notification subscription) into separate features. The field that actually counts watchers is subscribers_count, a completely different key.
So get_repo_stats has been returning a tool called "watchers" that's really just a duplicate of "stars," since the day I wrote it. I checked this live against the real API rather than trust my own reasoning about GitHub's schema:
>>> r = _gh(f"/repos/enjoykumawat/my-git-manager") >>> r["stargazers_count"], r["watchers_count"], r["subscribers_count"] (0, 0, 0) Not a dramatic number, because this particular repo doesn't have much star/watch traffic to tell the two apart — but that's the point, not a dodge. stargazers_count == watchers_count on every repo I checked, by construction, because they're the same underlying count. subscribers_count is the only field that can ever disagree with them, and it was sitting right there in the same API response the whole time, unused.
Here's the part that actually matters for the "read-only tools are never wrong" framing: this bug produced zero errors, zero exceptions, zero weird output shapes. Every call to get_repo_stats returned a perfectly well-formed dict with a plausible-looking watchers field. An agent calling this tool to answer "is anyone actually watching this repo for updates?" would get a confident, wrong answer back indistinguishable from a right one. The only way to catch it was to stop trusting the field name and go read the spec for what that field is actually documented to mean.
I fixed it to pull the field that's actually documented as the watcher count, with a fallback in case a future response ever omits it:
# `watchers_count` is NOT people watching the repo for notifications — # GitHub's own docs say watchers/watchers_count/stargazers_count all three # mean "starred it"; the real watcher count is subscribers_count. "watchers": r.get("subscribers_count", r["watchers_count"]), And verified the fix against a stubbed response before trusting it, the same way I'd verify a write path:
def fake_gh(path, method="GET", data=None): return {"name": "repo", "stargazers_count": 42, "forks_count": 3, "watchers_count": 42, "subscribers_count": 7, "open_issues_count": 1, "language": "Python", "description": "d"} server._gh = fake_gh out = server.get_repo_stats("repo") assert out["watchers"] == 7 # subscribers_count, not a copy of stars assert out["stars"] == 42 Before the fix, that assertion would have failed with watchers == 42, equal to stars, and nothing in the existing code would have told me so.
The thing I want to take away from this isn't "check your field names," though that's true too. It's that the asymmetry between read and write tools is real and it cuts against read tools, not for them. A write tool that's wrong eventually collides with reality — a duplicate article, a clobbered edit, something a human or a later check trips over. A read tool that's wrong just sits there being quietly, permanently wrong, because the only feedback loop available is someone going and checking the spec by hand, for a tool they had no particular reason to suspect.
If you're building MCP tools and you've been putting your review effort into the ones that mutate state — which is the natural thing to do, since those are the ones that can visibly break something — it's worth going back and asking the boring question about the read-only ones instead: not "does this crash," but "does this field actually mean what its name and docstring claim it means." Nothing will tell you if you don't ask.

