MCP and Tools

Prev Next

Controls define what Agents are allowed to do after an interaction has been authorized.

The most common control type is MCP (Model Context Protocol). MCP controls determine which tools an Agent can invoke on behalf of originating Identities.

MCP controls follow a least privileged model. By default, all tools are denied. An Agent can invoke a tool only if access has been explicitly granted in a Policy.

MCP controls answer the question:

Which tools can these users, through these Agents, actually use?


Granting Access to MCP Tools

To configure MCP controls:

  1. Select a Policy in the Policies Workspace (formerly Authorization Workspace) in the Environment sidebar.
  2. In the Policy Canvas, click the plus (+) icon in the MCP Control component, or click edit if you already have one or more MCPs connected.
  3. If your workspace has more than one MCP template, select the template you want to connect from the dropdown list. If only one MCP template is available, the side panel opens directly, and you can skip this step.
  4. In the side panel, select entries from the Groups or Tools tabs, as described below. You can also define a new Group by clicking + Add New in the upper-right corner.

Image

The Platform supports multiple levels of control, from high-level categorization to fine-grained parameter conditions.


Working with Multiple MCP Templates

A workspace can contain more than one MCP template. Multiple templates come from these sources:

  • Discovery: Each MCP Policy Orchestration Point (POP) that runs Discovery publishes its own template.
  • System defaults: The Platform provides a default MCP template.
  • Manual creation: Users can create MCP templates in the Platform

When more than one MCP template is available, the MCP Control follows the same behavior as Custom Asset Types:

  • The MCP Control shows a dropdown list of the available MCP templates.
  • You can connect each template only once per Policy.
  • Each connected template appears as a separate box on the canvas, stacked one below the other. You configure the Groups, Tools, and Parameters for each template separately.

Granting Access by Category

During Discovery, the platform scans connected MCP servers and tools. In addition to identifying tools, an AI-based classification layer organizes them into meaningful categories.

Categories reflect:

  • Functional domains, such as source control, CI and CD, local filesystem access, and observability.
  • Risk and impact profiles, such as sensitive data access, destructive actions, and high-cost operations.

This approach allows you to manage tool access by intent and risk rather than by individual tool name.

To add tool categories:

  1. In the Policies Workspace in the Environment sidebar, click on the relevant Policies Workspace.
  2. Select a Policy or create one.
  3. Open the Groups tab in the MCP Control section.
  4. Search for the relevant category.
  5. Select the category.

The selected category appears in the MCP Control widget on the canvas.

Example use cases:

  • Allow an IT operations group access to all CI/CD-related tools.
  • Exclude categories marked as Destructive or High Cost.
  • Prevent Agents from accessing tools that can delete data or incur unexpected spend.

You can also use the AI assistant to recommend appropriate categories based on your intent.


Granting Access by Server

In some cases, you may allow access to all tools exposed by a specific MCP server.

This approach is appropriate when tools are already governed at the server level.

To add a server:

  1. In the Policies section in the Environment sidebar, click on the relevant Policies Workspace.
  2. Select a Policy or create one.
  3. In the Groups tab, search for the MCP server name.
  4. Select the server entry.

The server appears in the MCP Control widget, granting access to all associated tools.


Granting Access by Tool and Parameter

For maximum precision, control access at both the tool and parameter levels.

This enables you to define:

  • Whether a tool can be invoked.
  • Under which Conditions it can be invoked.

To add individual tools:

  1. In the Policies Workspace in the Environment sidebar, click on the relevant Policies Workspace.
  2. Select a Policy or create one.
  3. Open the Tools tab in the MCP Control section.
  4. Search for or browse to the required tool.
  5. Select the tool.

The tool appears in the MCP Control widget on the canvas.


To define parameter-level conditions:

If a tool exposes parameters, they are automatically detected during Discovery. If the tool's Asset Type also defines actions, you select an action together with the parameter conditions. The action tells the enforcement point which operation the Policy covers, for example, whether the SQL Database Authorizer should modify a query.

  1. In the Policies section in the Environment sidebar, click on the relevant Policies Workspace.
  2. Select a Policy or create one.
  3. Click Parameters next to the selected tool. If the tool's Asset Type defines actions, the Parameters window opens automatically when you select the tool.
  4. Under Action, select an action. The field lists actions as buttons, or as a searchable dropdown when there are more than four.
  5. Under Rules, use the query builder to define the required Conditions based on the tool parameters.
  6. Click Save.
    The Parameters window shows different fields depending on the tool

Example

If using an Atlassian MCP server with a Create Jira Issue tool, you may:

  • Allow support employees to create issues.
  • Restrict issue creation to the Support project only.

To configure this:

  1. Add the Create Jira Issue tool.
  2. Open the Parameters configuration.
  3. Add a condition such as Project equals Support.

This approach ensures least-privilege access at the tool-execution level.

Filtering SQL in Tool Parameters

Some MCP tools accept a SQL statement as a parameter, for example a query parameter on a run_query tool. To limit the data an Agent can read through such a tool, assign a SQL filter Action to the parameter. When the PDP permits the tool call, it returns this Action, and a supported gateway Authorizer rewrites the query through the PlainID SQL Database Authorizer before the call reaches the MCP server.

To assign a SQL filter Action to a tool parameter:

  1. In the Policies Workspace in the Environment sidebar, click on the relevant Policies Workspace.
  2. Select a Policy or create one.
  3. Open the Tools tab in the MCP Control section.
  4. Select a tool that exposes parameters.
  5. Click the Filter funnel.
  6. In Action, select the SQL filter Action, for example FILTER:SQL:query. This field is required.
  7. Optional. In Rules, use the query builder to define the rules that apply with this Action.
  8. Click Save.
    The Platform connects the tool to the Policy with the selected Action and rules.

Notes:

  • Select one Action per parameter. Action is required, and Cancel clears the tool selection.

  • You can select one action per tool.

  • Rules is optional. If you don't define rules, the Policy applies no parameter filtering to that tool.

    Image

Example

A Database MCP server exposes a run_query tool that takes a SQL statement in its query parameter. The Sales Agents Policy connects run_query with the Action FILTER:SQL:query, and the SQL Database Authorizer Policies limit Sales Agents to US customers and mask the ssn column.

When a Sales Agent calls run_query with SELECT * FROM customers, the PDP permits the call and returns FILTER:SQL:query. The gateway Authorizer rewrites the query, and the MCP server runs:

SELECT id, full_name, NULL AS ssn FROM customers WHERE customers.region = 'US'

The exact rewrite depends on your Row-level and Column-level Policies.


By combining category, server, tool, and parameter-level controls, you can define precise, risk-aligned tool access within your Policies.

© 2026 PlainID LTD. All rights reserved.