Custom modes don't disable available tools

When I create a custom mode and disable all of the tools, the model is still able to make direct edits to files like Agent and sometimes makes direct edits without realizing that is what it is doing. I’m assuming that enabling/disabling tools just adds/removes instructions in the system prompt but doesn’t actually disable tool calls?