The dangerous part of an AI agent is not the model, it is the tool list you handed it
The first agent I wired to real tools had a read query and a write query, and nothing between the model and either of them. It worked beautifully right up until I asked what would stop it from calling the write query on
The first agent I wired to real tools had a read query and a write query, and nothing between the model and either of them. It worked beautifully right up until I asked what would stop it from calling the write query on a bad guess. The honest answer was nothing. The model was not malicious; it was just optimistic, and I had given it a capability with no friction in front of it.
That is the real risk surface of an agent: not the model's opinions, but the tools you attach and the permissions those tools carry. AgentGuard is built to make that surface reviewable before you ship, by rating each tool call and suggesting filters around the inputs and outputs.
30-second takeaway
- Rate each tool call by risk, so the dangerous capabilities are the ones you look at first.
- Get suggested input and output filters plus a blocklist, rather than hand-writing rules from scratch.
- See an EU AI Act mapping alongside the review, so the governance question is not a separate document.
Permissions are the product
An agent with no tools is a chatbot. The moment you give it a database, a file system, or an outbound request, you have handed model output a way to change the world. The failure mode is rarely a dramatic attack. It is an ordinary mistake: a hallucinated argument reaching a write endpoint, or a prompt injection in retrieved text steering a tool call.
So the useful question is not "is this model safe" but "what can this agent touch, and how risky is each of those calls." That framing is concrete. You can list the tools, rate them, and decide which ones need a filter or a blocklist entry before they go near production.
What the tool does
AgentGuard reviews an agent's prompt and its tool list. It rates the risk of each tool call and suggests input and output filters plus a blocklist, then maps the setup to the EU AI Act. The input is your prompt and tools; the output is a risk rating per call and a set of suggested guardrails you can act on.
That mapping matters because teams often treat security review and regulatory mapping as two separate tasks owned by two different people. Putting them in one pass means the engineer adding a tool and the person answering the compliance question are looking at the same list.
What it is not
This is not a runtime firewall and it does not execute your agent. It reviews and suggests β it tells you which calls deserve scrutiny and what filters to consider. It is also not a legal opinion: the EU AI Act mapping is guidance to organize your thinking, not a certification that your system complies. The decision to ship, and the final compliance judgment, stay with you.
FAQ
Does it block malicious tool calls at runtime?
No. It is a review-time tool. It rates the tools you give it and suggests filters and a blocklist; enforcing those is part of your agent's own implementation.
Is the EU AI Act mapping legal advice?
No. It is a general mapping to help you see which obligations may be relevant. It is decision support, not a compliance certification or legal sign-off.
Do I need to change my agent's architecture?
No. You hand it the prompt and tool list as they are. It returns a risk review you can use to decide what to tighten before release.
Author's Process
I built this with AI coding tools after a small mistake taught me that a write tool without a guardrail is an accident waiting for a plausible-looking input. The useful loop was fast: feed it a tool list, read the risk ratings, add the suggested filters, and repeat until nothing on the list made me uneasy.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.