← The Bench Journal
The LedgerBy Hamed Arab·2 December 2026·7 min read

Why Your AI Tools Look Flaky When They're Actually Dead

Two columns of server start-up: without one line every tool registers, with it the first tool fails its check and zero tools are offered.
  • When an AI tool integration goes silent, check first whether the server behind it actually finished starting up, before you assume it’s a network or permissions problem upstream.
  • A workaround that makes a mystery bug livable tends to hide it for longer, not less. It removes the pain that would have forced someone to look properly.
  • from __future__ import annotations is a genuinely well known but under-taught Python trap for anyone wiring up decorator-based frameworks, and more of the tools underneath the AI and no-code world are Python than you’d think.
  • A dead server and a permissions problem can look identical from where you’re sitting. Only one of them announces itself, and it’s not the one you’d assume.

I run an AI agent system for my business that connects out to a project management tool through a small server process, using MCP, the Model Context Protocol. It’s the same standard Claude and most other AI agents use to reach tools that live outside the model itself: your calendar, your task board, your files. You point the agent at the server, the server tells it what tools are available, and the agent calls them.

For eleven consecutive days, every single session with my agent system saw zero of those project management tools. Not slow. Not partial. Zero. And nothing crashed loudly enough to say why.

The bug that looked like something else

Here’s the part worth sitting with: nothing about this looked like a code defect. There was no stack trace pointing at the real problem, no error message naming a function or a file. The agent simply had no tools to call, session after session, and that is a shape of failure your instincts file under a completely different drawer.

A network hiccup. An authentication token that quietly expired. A permissions change somewhere upstream that nobody told me about. All three are common, all three are usually the correct first guess, and all three sent me looking in exactly the wrong place.

So I did what most of us do when a mystery problem is costing real time: I built a way to live with it. A manual workaround, a direct HTTP call path that skipped the missing tools entirely and hit the underlying service straight. It worked. It got the job done. And because it worked, it got written up as the accepted way of doing things going forward.

That’s the moment I want to flag, because it’s the one that nearly cost me the most. A coping mechanism had just calcified into “how we do this now”, and it happened for the most understandable reason in the world: it stopped the pain. Nobody was blocked any more, so nobody had a reason to keep digging. The workaround wasn’t a lie and it wasn’t laziness. It was simply effective enough to remove the one thing that would have forced someone, eventually, to find the actual bug.

What was actually happening, eleven days in

The real cause turned out to be a single line, sitting at the very top of the server’s source file:

from __future__ import annotations

If you’ve never met this line, here’s what it does. Normally, when Python reads a function’s type hints (the bit that says “this parameter should be a certain kind of object”), it evaluates them immediately, as real objects. That import statement changes that behaviour for the whole file: every type hint becomes a plain string instead. This is called deferred evaluation, and it’s defined in a Python proposal called PEP 563. It exists for good reasons in large codebases with complicated forward references. It is also a trap for the unwary.

The framework running my server, called FastMCP, works out what kind of object each tool expects by inspecting those type hints the moment the file is imported, doing something functionally equivalent to an issubclass() check: “is this hint the class I expect, or a subclass of it?” That check needs an actual class object to compare against. With the deferred-annotations line in place, what it got instead was a string, the literal text of the hint rather than the thing itself. The check failed. The registration step for the very first tool in the file threw an error. And because that happened during startup, before the server had registered anything else, the whole process came down with it.

Two columns showing server start-up: without the deferred-annotations line every tool registers and is offered, with it the check on the first tool fails and the server never finishes starting.
The same file with one line different. With it, the first tool’s check fails and nothing after it is ever registered.

From the outside, none of that is visible. The process itself doesn’t necessarily vanish. It simply never finishes standing up, so it never exposes a single tool. To anything trying to talk to it, that is indistinguishable from “this connection is fine, but there’s genuinely nothing on offer”, which is precisely what a permissions problem or an empty scope also looks like. The failure mode I’d spent eleven days chasing as a connectivity issue was, from start to finish, one Python import statement.

Four causes, a network hiccup, an expired token, a permissions change and a server that never finished starting, all pointing to one symptom: zero tools.
From the agent’s side every cause looks the same. The cheapest check is the one to make first: did the server finish starting?

The fix, once I’d actually found the line, was almost insultingly small: remove it, so the type hints stayed as real class objects the decorator could check properly. Everything came back at once.

The lesson underneath the lesson

I want to pull three things out of this, because none of them are really about my agent system, and all of them are things I’d want a maker building their own automations to have heard before they hit the same wall.

First: when an AI tool integration goes dark, check whether the server behind it actually finished starting up, before you climb the ladder to network and permissions. A server that crashes during its own setup and a server that’s up but locked out of a tool look the same from the calling side: no tools, no obvious complaint. The cheapest diagnostic step, checking whether the process itself is healthy and fully initialised, is also the one that’s easiest to skip, because it feels too basic to be the answer. It was the answer.

Second: be suspicious of any workaround that makes a mystery problem comfortable to live with. The instinct to route around a blocker is usually the right one when you know what’s broken. When you don’t, a workaround that quietly succeeds removes your only reliable signal that something is still wrong underneath. Mine didn’t just paper over the bug. It got documented, adopted, and nearly became permanent, precisely because it worked well enough that nobody had to go back and ask why the original path had failed in the first place. If you catch yourself writing up a workaround for something you can’t explain, that’s worth a note to revisit, not just a note to remember the workaround.

Third: from __future__ import annotations is worth knowing about even if you’re not a professional developer. It shows up constantly in modern Python, particularly in anything built around decorators, which is most of the framework code behind the AI tools, agent servers, and low-code platforms a growing number of makers are now wiring together themselves. You don’t need to be a software engineer to hit this. You need to be someone using AI to build real automations for a real business, which describes more of us every month. Knowing that this one line exists, and what it silently does to type hints, is the difference between an eleven-day hunt and a five-minute one.

None of this is a story about my system being fragile. Every serious piece of software has a moment like this in it somewhere, a small, ordinary line of code that turns a working thing invisible without a single alarm going off. The only real defence I’ve found is the habit underneath all three lessons above: when something looks impossibly broken and no error will tell you why, go back to the most boring possible question first. Did the thing actually finish starting? More often than you’d expect, that’s the whole answer.

By Hamed Arab. Rhino Authorised Trainer since 2023, Official Rhino Training Centre. Author of The CAD/CAM Jeweller, Volume 1. Three-time Goldsmiths' Craft and Design Council Award winner. Working jewellery designer, Jewellery Quarter, Birmingham.

Want to go deeper?

My book The CAD/CAM Jeweller covers these topics in production-ready detail. For one-to-one teaching, book a free 30-minute call to talk about where you are with your CAD or your jewellery brand.