Define the MCP rules for an AI agent

Create Allow and Deny rules on the MCP governance tab of an AI Agent asset page, to control which MCP tools the AI agent can use. A rule has an effect (Allow or Deny) and can match the metadata of a tool, for example its access type or surface. You can also apply a rule to one specific tool. An AI agent can have up to 500 rules.

To see the tools that the AI agent can call, go to Choose the tools an AI agent can use.

Prerequisites

Create a rule

  1. Open the AI Agent asset page, and click the MCP governance tab.
  2. Click Rules, and then click Create rule.
    The Create rule dialog box opens.
  3. Enter the required information.
    FieldDescription
    NameThe name of the rule. This field is required. The name must be unique for the AI agent, can have up to 100 characters, and can contain only letters, numbers, periods, underscores, and hyphens.
    Effect

    What the rule does when it matches a tool request:

    • Allow (default): The request is allowed.
    • Deny: The request is blocked. A Deny rule takes precedence over all other rules.

    If no rule matches a tool, the request is blocked.

    Metadata

    The conditions that a tool must meet for the rule to apply. Click Add metadata, and then enter a key and a value for each condition. You can use any key and value, up to 20 keys per rule, and each key once. Keys and values must match exactly, including uppercase and lowercase letters. For example, a rule that denies all tools that write data matches tools whose access type is write.

    A rule applies to a tool only if the tool meets all of the conditions.

    ToolOptionally, select a specific tool to apply the rule to. For example, to block a tool for this AI agent, create a Deny rule for that tool. A rule needs a tool, metadata, or both.
    Enable ruleSwitched on by default. Switch it off to create the rule without applying it yet.
  4. Click Create.
    The rule is added to the Rules table, which shows the rule name, effect, condition (the tool and the metadata as key and value pairs), and status.

Edit, enable, disable, or delete rules

In the Rules table on the MCP governance tab, do one of the following:

Rules must be compiled and published before the Agent Gateway uses them.

TBC - how rules are compiled and published. Rules are not enforced at runtime until an agent's policy is compiled (DEV-230383, still in the backlog), and there is no Publish button in the UI yet. The AI Agent asset has a Last Published MCP Gateway Configuration attribute.

Session flags: rules can change based on what the AI agent has already done during a session. For example, once the AI agent has used an external tool, block any tool that changes data. A flag stays in place until the session ends.

Connect an AI tool

After you publish, Collibra gives you a connection link and setup instructions that you can copy for popular AI tools, including Claude Code and Cursor. Share them with the people who use the AI agent. The connection points the AI tool at the Agent Gateway, which checks each request against your rules before it reaches the tool server.

Note Until the Agent Gateway is set up for your organization, you get a preview connection. The configuration is ready, but the rules aren't enforced.

TBC - confirm the label and location of the MCP client configuration, and how the Agent Gateway is set up.

What's next