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”
- 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.
- 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.
- 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.
- 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.
| Level | What you set | What it stops |
|---|---|---|
| Application settings | a settings file with three lists: what the model may do on its own, what it must always ask about, what it may never do | action without your knowledge |
| Choice of tools | only the servers and functions the job needs | permissions held just in case |
| Sandbox or container | a separate file system (Docker, or a container on Windows) without your keys and passwords | damage outside the working folder, provided the container is set up well and has no holes |
| System account | a separate user, and sudo rules (the sudoers file, edited with visudo) for named commands only | changes to the system |
| Network | a firewall (iptables or nftables) and rules for outgoing traffic | data leaving the machine |
| Process | CI/CD with a person in the loop: changes pass review and approval before they ship | the 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.