# 🛡️ A Python prototype checks MCP tool calls before they run

AI Today · published 2026-11-13T10:53:02Z · https://ai-today.com/product/0f1c7422-a305-479e-bc8c-66fa375abac7?lang=en

- 📜 The frt-agent-firewall package uses local rules to decide whether an AI agent can call an MCP tool.
- 🚫 Calls are denied unless permitted. Rules can also inspect individual arguments.
- ⛓️ The audit log chains hashes together. The host application must enforce the verdict before forwarding a call.

🔌 The frt-agent-firewall Python package is designed to help applications control the tools an AI agent uses through MCP. The library can permit individual tools, block requests based on their arguments and record each decision in a chained log. The application has to put the prototype in the path of its tool requests.

📅 MCP connects AI applications to tools such as file, search and database services. The frt-agent-firewall prototype, released November 13, is designed to run just before an application forwards a tool call to a server. It loads rules as data. The documentation says an empty allowlist blocks tool calls and deny rules take precedence. A rule can inspect a single argument, such as a file path.

🧱 The host application calls the library before execution and forwards the original request only if the verdict permits it. An HTTP proxy is still on the project’s roadmap. The checks apply where the application actually invokes the library.

🧾 The local audit trail records each verdict and a hash of the payload. It links the records so that alterations can be noticed when the chain is checked. The project says it keeps the raw arguments out of the trail. It describes the first public version as a research prototype.

## Sources

- [Maintainer repository](https://github.com/langarden/agent-firewall)
- [frt-agent-firewall 0.1.0](https://pypi.org/project/frt-agent-firewall/0.1.0/)

---
This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources.
