Set up Guardian Agents and Agent Contracts

Use your AI tool to set up an Agent Contract and a Guardian Agent that govern what your AI agent does. An Agent Contract holds the rules for your agent, and a Guardian Agent enforces those rules while the agent runs. For more information, go to About Guardian Agents and Agent Contracts.

Your AI tool does most of the work. It asks you questions and waits for your approval before every change. You can give this topic to your AI tool, or follow the steps yourself.

In this guide, you:

  • Connect your AI tool to Collibra through the Collibra MCP and its skills.
  • Create an Agent Contract and attach a Guardian Agent to your agent.
  • Enforce your rules with the SDK or the AI Gateway. With the SDK, you also deploy your agent to a platform such as Databricks and connect Collibra to that platform.
  • Check Guardian's results in Collibra.

What to expect

  • You enter passwords and tokens yourself, never in the chat with your AI tool.
  • Your AI tool writes code and files in your project. Review them before you deploy your agent.
  • The Guardian skill takes about 15 minutes. A pause with no new output is normal.
  • You can start Guardian in monitor mode, which records violations without blocking actions, and switch to enforce mode later.

Choose how to enforce your rules

Guardian can enforce your Agent Contracts in two ways. Both use the same policy engine, so you create your Agent Contracts once, as described in Create your contract. The enforcement setup is different.

  • SDK: You add Guardian to each agent's code, and redeploy the agent to update its rules. For the steps, go to Enforce rules with the SDK.
  • AI Gateway: You install it once. Every agent whose traffic goes through it is registered in AI Command Center automatically, and new rules files are downloaded automatically, with no code change or redeploy. For the steps, go to Enforce rules with the AI Gateway.

Prerequisites

  • The AI Agent contracts and Guardian settings are enabled in Settings > AI Command Center. If you don't see the Guardian and contract tab, contact your Collibra Account Team.
  • The URL of your Collibra instance, your username, and your password.
  • One of the AI tools listed in Connect your AI tool to Collibra. You use it for almost every step, and it must be able to run commands and edit files in your project folder.
  • The Collibra MCP server program and the Guardian SDK files, which you get from your Collibra Account Team. For more information, go to Get the Collibra MCP server and Guardian SDK files.
  • You have, or know someone who has, the a global role with the global permissions in the following table for the relevant steps. If you don't have a permission, send them the relevant section of this topic.
Global permission You need it to
System Administration Switch on the AI Agent contracts and Guardian settings.
Register Agent Contract Create an Agent Contract in Create your contract.

Set up with your AI tool

To have your AI tool do the whole setup for you, copy the following prompt, replace the placeholders, and paste it into your AI tool.

Open your AI assistant in the folder that contains your agent's code. If the folder has several agents, the assistant asks which one to set up. Run the prompt once for each agent.

Set up Agent Contracts and Guardian Agents for the AI agent in this folder, end to end, by following the setup guide at https://productresources.collibra.com/docs/collibra/latest/Content/AICommandCenter/GuardianAgents/ta_guardian-setup-guide.htm.
Use the Collibra MCP server for all Collibra steps.
If something is not available to you or you do not know it, ask me. If a required tool is missing, ask me before you install it.
Do not assume anything.
Do not ask me to paste passwords or tokens in this chat. Tell me where to enter them myself.

My Collibra instance: [YOUR COLLIBRA URL]
My deployment platform, for example Databricks: [YOUR PLATFORM URL]

What's next