DEV Community

Amer Yahya for Enforra

Posted on

𝗧𝗵𝗲 𝗮𝗴𝗲𝗻𝘁 𝗱𝗲𝗹𝗲𝘁𝗲𝗱 𝘁𝗵𝗲 𝗿𝗲𝗰𝗼𝗿𝗱. 𝗧𝗵𝗲 𝘀𝘆𝘀𝘁𝗲𝗺 𝗽𝗿𝗼𝗺𝗽𝘁 𝘀𝗮𝗶𝗱 𝗻𝗼𝘁 𝘁𝗼

Prompt engineering is not a security boundary. Here is why that matters for everyone building production agents.

When your AI agent calls an MCP tool, it sends a structured message with a tool name and parameters. The model decided what to call and what to pass in. That decision came from the model, shaped by context it accumulated across a session.

Your system prompt did not validate those parameters. It did not check whether the tool call was permitted at that moment, for that user, under that workflow. It did not require approval before the action fired. It did not write an audit entry.

This is the gap:

In a traditional app, you enforce access control at the API layer. Tokens, scopes, middleware, rate limits. The business logic does not get to decide its own permissions at runtime.

In most agentic apps right now, the agent is deciding its own permissions dynamically, constrained only by what you wrote in the system prompt. That is a significant gap.

What you actually need is a layer that sits between the agent and the tools, evaluating every call against a defined policy before it executes.

That means:

  • Tool-level allow/deny rules
  • Parameter schema enforcement
  • Context-aware approval flows for high-risk actions
  • Immutable audit logs of what was called, with what, and by which agent

This is not a new idea. It is how we have handled access control in every prior compute paradigm. Agents need it too.

This is what Enforra is building: a runtime control layer that enforces what agents can do, not just what we hoped they would do.

Website: https://www.enforra.com/
GitHup: https://github.com/enforra/enforra/

Top comments (0)