7 of 8

House rules

Run a model on your own cards for a week and one thing becomes obvious. The engine does one job: it takes text and appends the next tokens. It cannot open a file, send an email or run a command. Everything that touches the world is done by a program you put around it.

The loop behind “the model did it”

Who talks to whom when the model “uses a tool”
YouApplicationreads the model's text,checks the rules,asks you when it must,calls the toolsEngine with the modelonly appends textTool server (MCP)a program: files, networkrequest, yes or no“may I?”, the answerprompt and tool resultstext, sometimes a tool requestthe call, if the rules allow itresult
The red arrow is the only place where the model's text becomes an action. It runs through an application you control. That application is usually called a harness.
  1. The model is trained to write tool requests in an agreed form. That is all a “tool call” is at this point: text shaped a certain way.
  2. The application receives the text and parses it. If it looks like a tool call, the application checks its rules. Some calls go straight through, some stop and ask you, some are refused. You can answer by hand or program the answer in advance.
  3. A tool server is an ordinary program, running on your machine or somewhere else. It gets a tool name and arguments, does the work, and returns a result. MCP is the standard for that conversation.
  4. The application pastes the result into the next prompt. The model reads it and writes on: another request, or a message telling you what it did.

Where the danger actually is

Without tools a model is a text generator. What makes it risky is the pair: tools with real permissions, and a model that will follow an instruction it finds in text it has read. A tool result, a web page or a file can contain instructions dressed up as yours. That is why the limits are set outside the model, where the model's text cannot move them.

LevelWhat you setWhat it stops
Application settingsa settings file with three lists: what the model may do on its own, what it must always ask about, what it may never doaction without your knowledge
Choice of toolsonly the servers and functions the job needspermissions held just in case
Sandbox or containera separate file system (Docker, or a container on Windows) without your keys and passwordsdamage outside the working folder, provided the container is set up well and has no holes
System accounta separate user, and sudo rules (the sudoers file, edited with visudo) for named commands onlychanges to the system
Networka firewall (iptables or nftables) and rules for outgoing trafficdata leaving the machine
ProcessCI/CD with a person in the loop: changes pass review and approval before they shipthe mistake that got past every other level

The wider the permissions, the more of these levels should be switched on. A local model is not safer than a remote one in this respect. The one thing it changes is that your data stays on your machine.