What are AI guardrails?
AI guardrails are the rules and technical controls that keep an AI system inside safe limits. They decide what the system can read, what it can do, what it can say, and when a person has to approve before it goes on.
A model on its own only produces text. Once an AI agent can call tools, guardrails matter more, because a wrong answer can become a wrong action: a refund issued, a record deleted, an email sent.
What are the types of AI guardrails?
- Input guardrails. Check what goes into the model: block prompt injection, strip sensitive data, refuse out-of-scope requests.
- Output guardrails. Check what comes out: filter harmful or off-policy content, catch made-up facts, validate the format before anything downstream uses it.
- Access guardrails. Limit which systems and data the AI can reach, and with whose permissions.
- Action guardrails. Limit what an agent can do with a tool: which operations are allowed, with what parameters, how often.
- Approval guardrails. Pause for a person before a high-risk action. See human-in-the-loop.
- Audit guardrails. Record every call so you can see what happened and prove it.
What are examples of AI guardrails?
- A support agent can look up an order and issue refunds up to a set amount. Anything larger waits for a manager’s approval.
- A sales assistant can read CRM accounts but cannot delete them, because the delete operation is not exposed to it.
- A model’s reply is checked against a schema before it updates a database.
- Customer data is masked before a prompt leaves your systems.
- Every tool call an agent makes is logged with who asked, what ran and what came back.
Are model guardrails enough?
No. Model providers build safety into their models, and that covers what the model says. It does not cover what your agent is connected to. If an agent holds an admin key to your CRM, a polite model still has an admin key. Guardrails on tools, credentials and approvals sit outside the model, so they hold no matter which model you use.
What is the difference between AI guardrails and AI governance?
Guardrails are the individual controls. Governance is the program around them: who sets the policy, who approves agents going live, how audits and compliance are handled. Guardrails are how governance is enforced in the running system.
What are the common problems?
- Controls only in the prompt. “Never delete records” in a system prompt is a request, not a control.
- Over-broad credentials. One shared admin login behind every agent.
- Approval on everything. Too many prompts and people click through. Gate only the actions that carry risk.
- No record. When something goes wrong, there is no log to explain it.
- Unapproved tools. Teams connect agents to apps nobody reviewed. See shadow AI.
AI guardrails at Tray
Tray puts the guardrails around the tools an agent uses, not inside the model.
With Agent Gateway for MCP, any app Tray connects to becomes a governed MCP tool: you choose which operations the agent can call, Tray holds the credentials so the agent never sees them, and every call is logged. In Tray Helix, any tool can require approval, so a person decides before the agent continues.
Governance applies across both products. Workflow, agent and audit logs stream to your SIEM or log tool, so what agents did lands where your security team already looks. See J.W. Pepper for 500+ MCP tools reduced to about 20 governed workflows, with zero raw database access.