Instructions and data share one channel
A language model receives its instructions and the content it is working on as one stream of text. It has no reliable way to tell which parts are orders from the developer and which are a customer message, a web page, or a document. Text that says "ignore the above and do this instead" sometimes works, and no amount of wording in the system prompt makes it never work.
What that means for access
If a model can call a tool, then whoever can get text in front of the model can try to call that tool. If the tool runs with broad permissions and relies on the prompt to stay in its lane, the prompt is the only thing between an attacker and those permissions.
The same applies to data. A model given every customer's records and told to discuss only the current customer's will eventually be talked into discussing someone else's.
Where the control belongs
In code. Tools run with the permissions of the user who is asking, never with a shared service account. Retrieval filters by what that user may see before anything reaches the model. Actions that cannot be undone wait for a human. Outputs are treated as untrusted before they are rendered or executed. Prompts and filters are still worth having as a second layer. They are a seat belt, and the brakes are somewhere else.